Remove links from transport case file

Discussion created by Michael_Lowry on Nov 21, 2016

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 withucybdbld’s new -FOT option, 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 acomment on another thread