lundi 16 février 2015

Print more than one line from a text file


I am using the following code to print the second line from a file:



sed '2q;d' file


what can I add to this code so I can print two or more lines at once?



Aucun commentaire:

Enregistrer un commentaire