[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:general_admin:cli_constructs_and_useful_info [2012/12/24 12:11 (UTC)] – [Regular expressions] hazelhowtos:general_admin:cli_constructs_and_useful_info [2013/04/02 15:19 (UTC)] (current) – [Constructs] htexmexh
Line 9: Line 9:
 ls -1 /var/log/packages | rev | cut -d - -f 1-3 --complement | rev ls -1 /var/log/packages | rev | cut -d - -f 1-3 --complement | rev
 </code> </code>
-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 /proc/config.gz | rev | cut -d. -f1 --complement | rev echo /proc/config.gz | rev | cut -d. -f1 --complement | rev
Line 204: Line 204:
 </code> </code>
 === cmp === === cmp ===
-This can compare two files byte by byte, and can be more useful that checksums. For example, after you burn a CD/DVD, you can run:+This can compare two files byte by byte, and can be more useful than checksums. For example, after you burn a CD/DVD, you can run:
 <code bash> <code bash>
 cmp slackware.iso /dev/sr0 cmp slackware.iso /dev/sr0
 howtos:general_admin:cli_constructs_and_useful_info ()