Here is a simple awk command that strips out all object links from a transport case file.
awk '/^O/{if(seen==0){seen=1;print $0}} !/^O/{if (seen==1) {seen=0} print $0}' $trans > $newtrans
When combined with, this command can be used to load objects to a specific location and nowhere else, regardless of whether the objects already exist (even in a different location) in the target system. I originally posted this as a on another thread