View Single Post
  #2 (permalink)  
Old June 16th, 2018, 04:11 PM
geodoomgr geodoomgr is offline
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2018
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default what does the grep do

the code finds lines in the file named title_file
Actually the code finds the lines that do NOT begin with the specified pattern
and saves all these lines in a temporary file. Then the next line renames the temporary file
and gives it the name of the existing file, so it actually substitutes the existing file with a file that does not have the specific lines , so in other words the specific lines were removed.
Reply With Quote