Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: range

31 May

Sed Regular Expression Range

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/

admin Posted in Command Line, Linux command, expression, Linux, range, regexp, regular, sed Leave a comment
11 Jan

Using Range in Commands

Show files and directory containing numbers


ls *[0-9]*
admin Posted in Command Line, Linux cli, command, Linux, ls, numbers, range Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑