Tuesday, 21 April 2015

Write a shell script that deletes all lines containing a specified word in one or more files supplied as arguments to it.



echo "enter file name"
read FILE
echo "Enter word to delete"
read word1
echo $word1
sed -e 's/\<ok\>//g' $FILE
 

1 comment:
Write comments
  1. Grеat blog! Is your theme custom maɗe оr ԁid yoս downloaqd іt rom sоmewhere?
    A theme like youгs witɦ a fеw simple twweks աould гeally
    mɑke mү blog shine. Pleаse leet me knokw ѡɦere you ggot
    yoսr design. Cheers

    Feel ftee tߋ surf to my web-site: multiplayer

    ReplyDelete

Featured post

List of Universities in Karnataka offering M.Sc Computer Science

The post-graduate programme in Computer Science (M.Sc Computer Science) contains two academic years duration and having a four semesters....

Popular Posts

Copyright @ 2011-2016