Guest User

Untitled

a guest
Jan 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. perl -ne 'print if /^1234/'
  2.  
  3. sed -ne '/^1234/p'
  4.  
  5. awk '/^1234/'
  6.  
  7. grep '^1234'
  8.  
  9. ruby -ne 'print if /^1234/'
  10.  
  11. python -c 'import fileinput;print "n".join([l for l in fileinput.input() if l.startswith("1234")])'
  12.  
  13. perl -ne'print if /^1234/' file
  14.  
  15. grep ^1234 file
  16.  
  17. findstr /r ^1234 file
  18.  
  19. sed -ne '/^1234/p' somefile
  20. awk '/^1234/{print}' somefile
  21. grep '^1234' somefile
Add Comment
Please, Sign In to add comment