I couldn't get this sed issue worked out however, I found a way to work around it. I learned of the grep -v option which acts as a reverse grep. I used this to remove unwanted directories as I was doing my snapshot comparison. So now I have code listed below. Thanks for everyones help.
#Create...
When I use the command below, I'm recieving "Can't open shanpshot" even though snapshot has -rwxrwxrwx- permissions.
sed '/\/tmp/ d' snapshot
I guess the sed command is being processed correctly, but what else could be causing "Can't open shanpshot" error?
I have a file that contains a snapshot of all the current files and directories. I am trying to remove several directories from this snapshot. What I have is:
sed '/\/tmp/ d' snapshot
The issue is that the sed command uses the same delimeter as the directory /. I've tried setting the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.