|
|
Sed to replace string - Linux
|
Views : 317
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
sed 's/scripts/javascript/g' file1.txt
Opens the file file1.txt and searches for the word 'scripts' and replaces every occurrence with the word 'javascript'.
sed -n '$=' file1.txt
The above command count the number of lines in the file1.txt and output the results. |
|
By RameshKumar, On - 2010-01-28 |
|
|
|