5

Comment lines in FSTAB using perl

view full story
linux-howto

http://www.unix.com – Hi All, I need to comment specific Two Lines in fstab & want to do using & also want to ensure that is done corretly. I am trying the below method. But its giving Search pattern not terminated. ################ b36376 67 % cat linux-fstab_testing | perl -i -wnl -e '/^('\Q zin46fil01:\/vol\/fil01vol09\/soft1\/\_TOOLS_\/dist \/_TOOLS_\/.dist15 ')/ and print "#$1" or print' Search pattern not terminated at -e line 1. b36376 68 % ################# Please help on this Regards Ankit (HowTos)