removing lines number in bash (using sed)

Working from text files, sometime you might come accross the need to remove the line numbers from line into a file.

 

cat file_with_line_nbers |  sed 's/ *[0-9]*.//' > my_new_file

Leave a Reply