I am looking for a perl command where lines starting with a string are printed. For example, if I wanted to print all lines starting with "1234", what would that command look like? Sed? Awk? Grep?
相关问题
- $ENV{$variable} in perl
- Why should we check WIFEXITED after wait in order
- Is it possible to pass command-line arguments to @
- Redirecting STDOUT and STDERR to a file, except fo
- UNIX Bash - Removing double quotes from specific s
相关文章
- Running a perl script on windows without extension
- Making new files automatically executable?
- Reverse four length of letters with sed in unix
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- Problem with piping commands in C
- Lazy (ungreedy) matching multiple groups using reg
But most people would use
grep
.Or on Windows
or
or
or
or
or even
For completion: