Hi. I need help! I should know how to do this, but I have a file that is actually a list of files acquired through frecover. The file looks like:
/
/user/filename.txt
/etc/password
/bin/command
What I want to do is remove the line that has JUST a "/" on it (the first line). Other lines have a "/" in them so I need to delete only the only line that has a "/" ONLY in it. I guess that would be a "/" followed by a CR/LF, right? I'd really rather do this with a unix shell script than perl.
Any help would be greatly appreciated!
Thanks.
Steve
/
/user/filename.txt
/etc/password
/bin/command
What I want to do is remove the line that has JUST a "/" on it (the first line). Other lines have a "/" in them so I need to delete only the only line that has a "/" ONLY in it. I guess that would be a "/" followed by a CR/LF, right? I'd really rather do this with a unix shell script than perl.
Any help would be greatly appreciated!
Thanks.
Steve