![]() |
unix/ssh question
it is possible from command line to delete lines from a file?
for example delete all lines (like "wordxxx) from the files in the directory /var/ i want to delete only these lines from files.. not the entire files if yes, how do i do that? |
|
You could also do something like:
cat yourfile.txt | grep -v "stuff you dont want" > newfile.txt Your mileage may vary. |
All times are GMT -7. The time now is 06:10 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123