Quick Linux/regexp tips

To get info on your environment: env

to do a case-insensitive searc for .pm files in /usr and subfolders:
find /usr -iname '*.pm'
To get a terminal type xfce4-terminal in the Alt+F2 box

To find a string of alpha characters between 100 and 200 characters long in finnwake.txt:

grep "[A-Za-z]\{100,200\}" finnwake.txt

To find words between 25 and 30 characters without vowels:

grep -w "[^aeiouy]\{25,30\}" finnwake.txt

to exit a MAN screen, use q

to page down in a MAN screen, use f

to page up in a MAN screen, use b

This entry was posted in Regular Expressions, Ubuntu Linux and tagged . Bookmark the permalink.

Comments are closed.