I have a script which currently uses a file containing a list of directories as an argument. The file is read in to an array, and then the array is iterated in a for loop.
What I would like to do is cut off the first few directories of the directory path (they won't exist on the server where the items are being copied).
Here is an example:
On local server:
/usr/local/logs/serverlogdir
On remote server:
/logs/serverlogdir <- note that the /usr/local is removed
Haha, you know, immediately after posting it I remembered that sed exists. Its been a many-cup-of-coffee type of morning. Thanks for answering! I know it'll work