[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:general_admin:cli_constructs_and_useful_info [2012/10/21 10:50 (UTC)] – [Sources] htexmexh | howtos:general_admin:cli_constructs_and_useful_info [2013/04/02 15:19 (UTC)] (current) – [Constructs] htexmexh | ||
---|---|---|---|
Line 9: | Line 9: | ||
ls -1 / | ls -1 / | ||
</ | </ | ||
- | Or if you wanted to get the full patch of a file, minus the suffix. | + | Or if you wanted to get the full path of a file, minus the suffix. |
<code bash> | <code bash> | ||
echo / | echo / | ||
Line 97: | Line 97: | ||
bash-4.2$ | bash-4.2$ | ||
</ | </ | ||
- | Clearly you need to quote a file with spaces. You could use single quotes here, because no variable | + | Clearly you need to quote a file with spaces. You could use single quotes here, because no variables |
<code bash> | <code bash> | ||
bash-4.2$ for i in $(seq 1 10); do printf "$i "; done; echo; | bash-4.2$ for i in $(seq 1 10); do printf "$i "; done; echo; | ||
Line 148: | Line 148: | ||
=== External Links === | === External Links === | ||
* http:// | * http:// | ||
- | ==== Regex ==== | + | ==== Regular expressions |
=== Basic === | === Basic === | ||
* '' | * '' | ||
Line 174: | Line 174: | ||
* Example: '' | * Example: '' | ||
* '' | * '' | ||
- | === Extended === | + | === Extended |
The following must be supported by the program for them to work. For example for grep you must run '' | The following must be supported by the program for them to work. For example for grep you must run '' | ||
* '' | * '' | ||
Line 204: | Line 204: | ||
</ | </ | ||
=== cmp === | === cmp === | ||
- | This can compare two files byte by byte, and can be more useful | + | This can compare two files byte by byte, and can be more useful |
<code bash> | <code bash> | ||
cmp slackware.iso /dev/sr0 | cmp slackware.iso /dev/sr0 |