I need to tar files from different directories, but I DON'T want the fully qualified path prefixing each file name. The way I'm getting the list of files to tar is by using the variable set by a find cmd that specifies the full path.
ex.
>set LOF [eval exec find /some/dir/path -name "*.c"]
>exec tar -cvf newtarfile.tar [lindex $LOF 0 end]
I would like to cd to the "/some/dir/path" prior to executing the find cmd.
ex.
>set LOF [eval exec find /some/dir/path -name "*.c"]
>exec tar -cvf newtarfile.tar [lindex $LOF 0 end]
I would like to cd to the "/some/dir/path" prior to executing the find cmd.