I need to check a file and I wish to know how to delete all the unnecessary content? Thank you
To do this, go to the desired directory, for example:
cd /root
Then create a file with the help of an editor and copy the relevant file codes into it and save the file. For example with this name:
nano test123.file
Finally, by executing the following command, all lines that started with # are deleted completely:
sed -i '/^#/d' test123.file
+8595670151
7 days a week, 24 hours a day