Advertisement
Guest User

jul2notes

a guest
Jul 2nd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. gaurang@gaurang-Satellite-L305:~$ egrep '^ '
  2. fbgslfj
  3. bfsbbsjfk
  4. vfsnbfj
  5. gaurang@gaurang-Satellite-L305:~$ # find lines that have trailing blanks
  6. gaurang@gaurang-Satellite-L305:~$ egrep '$ '
  7. fbgusibrf
  8. fnsflns'fs
  9. gaurang@gaurang-Satellite-L305:~$ # look for line shtat contain one or more occurences of *
  10. gaurang@gaurang-Satellite-L305:~$ egrep '\*+'
  11. dfvbsodfbl*****
  12. dfvbsodfbl*****
  13. gaurang@gaurang-Satellite-L305:~$ look for lines that contain one or more occ of +
  14. look: lines: No such file or directory
  15. gaurang@gaurang-Satellite-L305:~$ egrep '\++'
  16. ++++
  17. ++++
  18. gaurang@gaurang-Satellite-L305:~$ egrep '\+'
  19. +++
  20. +++
  21. fghsfh
  22. gaurang@gaurang-Satellite-L305:~$ egrep 'XYZ'
  23. dfkgsfnjksXYZ
  24. dfkgsfnjksXYZ
  25. gaurang@gaurang-Satellite-L305:~$ # fidn all lines that contain two or more characters
  26. gaurang@gaurang-Satellite-L305:~$ egrep '..+'
  27. dfgsfng
  28. dfgsfng
  29. -25i40
  30. -25i40
  31. 85
  32. 85
  33. kdsfns
  34. kdsfns
  35. gaurang@gaurang-Satellite-L305:~$ # find all lines that contain a \
  36. gaurang@gaurang-Satellite-L305:~$ egrep '\\'
  37. \*?
  38. \*?
  39. fmd\
  40. fmd\
  41. fkf
  42. gaurang@gaurang-Satellite-L305:~$ ^C
  43. gaurang@gaurang-Satellite-L305:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement