Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gaurang@gaurang-Satellite-L305:~$ egrep '^ '
- fbgslfj
- bfsbbsjfk
- vfsnbfj
- gaurang@gaurang-Satellite-L305:~$ # find lines that have trailing blanks
- gaurang@gaurang-Satellite-L305:~$ egrep '$ '
- fbgusibrf
- fnsflns'fs
- gaurang@gaurang-Satellite-L305:~$ # look for line shtat contain one or more occurences of *
- gaurang@gaurang-Satellite-L305:~$ egrep '\*+'
- dfvbsodfbl*****
- dfvbsodfbl*****
- gaurang@gaurang-Satellite-L305:~$ look for lines that contain one or more occ of +
- look: lines: No such file or directory
- gaurang@gaurang-Satellite-L305:~$ egrep '\++'
- ++++
- ++++
- gaurang@gaurang-Satellite-L305:~$ egrep '\+'
- +++
- +++
- fghsfh
- gaurang@gaurang-Satellite-L305:~$ egrep 'XYZ'
- dfkgsfnjksXYZ
- dfkgsfnjksXYZ
- gaurang@gaurang-Satellite-L305:~$ # fidn all lines that contain two or more characters
- gaurang@gaurang-Satellite-L305:~$ egrep '..+'
- dfgsfng
- dfgsfng
- -25i40
- -25i40
- 85
- 85
- kdsfns
- kdsfns
- gaurang@gaurang-Satellite-L305:~$ # find all lines that contain a \
- gaurang@gaurang-Satellite-L305:~$ egrep '\\'
- \*?
- \*?
- fmd\
- fmd\
- fkf
- gaurang@gaurang-Satellite-L305:~$ ^C
- gaurang@gaurang-Satellite-L305:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement