if [ $# -eq 0 ]
then
echo "Please enter one or more filenames as argument"
exit
fi
echo "Enter the word to be searched in files"
read word
for file in $*
do
sed "/$word/d" $file | tee tmp
mv tmp $file
done
Study it today is an absolutely FREE website which has been created to provide notes and study materials to the people who are enthusiastic to study different technical and non-technical subjects in a different way....
12 comments:
sed "/$word/d" $file | tee tmp
could u please explain this
sed "/$word/d" $file | tee tmp
could u please explain this
yes i can explain
come to my home . . i can explain everything to you
This would be helpful : http://www.msccomputerscience.com/2015/04/write-shell-script-that-deletes-all.html
Where is output
output???????????????????????????????????????/
does not work for me
Beia side hoe
Im Scientist Zorema of nielit ��
bhagg bc
Bhag bhsdk sala where is the output
Post a Comment