shell_tips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| shell_tips [2010/06/21 17:37] – 172.26.14.202 | shell_tips [2018/04/30 10:08] (current) – Meh, remove this old crap. aorth | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Shell tips and tricks ====== | ||
| - | * [[shell_tips: | ||
| - | * [[shell_tips: | ||
| - | |||
| - | ====== Searching for a string in multiple files ====== | ||
| - | Ever need to search through all your files for a certain word or phrase? You probably know about the grep command, but did you know it's recursive? | ||
| - | |||
| - | Here's an example. In this case we're searching for the word " | ||
| - | |||
| - | < | ||
| - | |||
| - | By using the " | ||
| - | |||
| - | If you'd rather just get the file names and skip the rest of the output, use the " | ||
| - | |||
| - | < | ||
| - | |||
| - | Here's another tip: grep also supports regular expressions, | ||
| - | |||
| - | < | ||
| - | |||
| - | That command will print a list of files containing any word starting with " | ||
| - | |||
| - | You can also use grep to search for multiple words: | ||
| - | |||
| - | < | ||
| - | |||
| - | And, of course, grep supports file name wildcards in the standard unix fashion. In this example, grep will search only file names starting with " | ||
| - | |||
| - | < | ||
| - | |||
| - | |||
| - | ====== Bluetooth ====== | ||
| - | sudo apt-get install obextool gnome-vfs-obexftp blueman | ||
| - | |||
| - | ====== Statically linking executable ====== | ||
| - | |||
| - | < | ||
| - | < | ||
shell_tips.1277141843.txt.gz · Last modified: (external edit)
