grep -rnw '/path/to/somewhere/' -e 'pattern'
-r
or -R
is recursive,-n
is line number, and-w
stands for match the whole word.-l
(lower-case L) can be added to just give the file name of matching files.Along with these, --exclude
, --include
, --exclude-dir
flags could be used for efficient searching.
Original Stack Overflow answer: https://stackoverflow.com/a/16957078/1059672
There is a way using CSS! If you set your width depending on the parent…
This snippet will remove duplicate lines from text file: awk '!seen[$0]++' filename It will display…
Easiest way to export your database is through phpMyAdmin. With few clicks you can get…
Put this code into a .sh file, add executable permissions to it and add it…
Put this code into a .sh file, add executable permissions to it and add it…
Facebook has a somehow hidden way for addding applications as page tab. To do that,…