Posts Tagged With: range

Sed Regular Expression Range

Tagged with: , , , , , ,

Print the contents of a file from a given regular expression to another

sed -n '/start/,/end/ p' file

This will print the contents of the ‘file’ from the line that matches /start/ until the line that matches /end/

No Comments »

Using Range in Commands

Tagged with: , , , , ,

Show files and directory containing numbers

ls *[0-9]*
No Comments »