Sample Header Ad - 728x90

In a text file, finding and deleting lines including (e.g.) "#', or a word?

0 votes
2 answers
62 views
I am using Ubuntu Linux and Mageia Linux... I wish to do the following: in a text file (sample.txt), find and delete every line comprising the symbol '#' (or '?') or a specific word (e.g. 'mobile') Any idea how to start ? Thanks a lot Vincent
Asked by Vinz M (11 rep)
Jun 16, 2025, 12:16 PM
Last activity: Jun 18, 2025, 05:54 AM