- Share and discover one-liners for the technologies you use.
- Add one-liners to your personal stash.
- Customize which technologies you want to follow.
- Easily export your favourite one-liners.
-
ls -l | sed -n 2pNo description
-
git push origin :name_of_tagNo description
-
git diff --name-status master..branchNo description
-
git reset --soft HEAD^Removes the commit and stages the changes again.
If you only want to change the commit message you could use "git commit --amend" instead.
-
awk '{sub(/\r$/,"")};1'Assumes each line ends with Ctrl-M
-
awk 'NF > 4'In this case more than 4 fields.
-
awk '{ print $NF }'No description
-
awk '{print FNR "\t" $0}' files*No description
-
perl -ne 'm/^([^#][^\s=]+)\s*(=.*|)/ && printf("%-35s%s\n", $1, $2)' /etc/my.cnfCan also be used or reworked to pretty-print similar configuration files.
-
svn status PATH | awk '/^\?/{system("svn add "$2)}'No description
