Shell Program which deletes all lines ...

Shell Program which deletes all lines containing the word "UNIX" in the files supplied as argument..please help me to do this task :slight_smile:

What have you tried so far?

Its for my friend , I am a newbie and don't have much idea how to do this..

#!/bin/sh
sed 's/UNIX//g < FILENAME

cat FILENAME | sed 's/UNIX//g > OTHERFILENAME
sed 's/UNIX//g < FILENAME > OTHERFILENAME

anything will do.

  • nilesh