View Single Post
Old Aug 15th, 2007, 1:29 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,464
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Is it a particular line you are interested in? Are there other commented mounts that you want to exclude? What does your fstab look like?

To remove all # in the file you could do this:

cat fileA | sed 's/#//g' > fileB; mv fileB fileA

If you want a more specific line uncommented, need more info.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote