Reply to comment

grep

grep '^..$' filename Match all lines with exactly two characters
grep '^.\{12\}$' filename Match all lines with exactly 12 characters
grep '^.\{12,\}$' filename Match all lines with at least 12 characters
grep '^.\{7,12\}$' filename Match all lines with at least 7 and less than or equal to 12 characters
grep -v foobar filename Match all lines in filename that do not match foobar

Reply

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.

More information about formatting options