9785 shaares
228 private links
228 private links
108 results
tagged
bash
Do one thing per command and one only. Everything will be fine.
Amend a commit message by ID. A simple script.
Yes 👍
I really enjoy the explanation on how to use pushd and popd to navigate between directories.
After pushd, it is possible de navigate through cd ~n
with n the index of the path in the stack.
cd -
to return to the previous path :)
A great list of tools. A majority of them are written in Rust 😄
😮
cat toto.txt | sort | uniq > pas-de-doublons.txt
to
cat toto.txt | awk '!x[$0]++' > pas-de-doublons.txt
Using the shell for daily tiny tasks ❤️
Fun ! This respect the KISS principle 😄
Using the tool named souffle
.
command | meaning |
---|---|
${parameter:-defaultValue} | Get default shell variables value |
${parameter:=defaultValue} | Set default shell variables value |
${parameter:?"Error Message"} | Display an error message if parameter is not set |
${#var} | Find the length of the string |
${var%pattern} | Remove from shortest rear (end) pattern |
${var%%pattern} | Remove from longest rear (end) pattern |
${var:num1:num2} | Substring |
${var#pattern} | Remove from shortest front pattern |
${var##pattern} | Remove from longest front pattern |
${var/pattern/string} | Find and replace (only replace first occurrence) |
${var//pattern/string} | Find and replace all occurrences |
${!prefix*} | Expands to the names of variables whose names begin with prefix. |
${var,} | Convert first character to lowercase. |
${var,pattern} | Convert only if the pattern match |
${var,,} | Convert all characters to lowercase. |
${var,,pattern} | Convert only if the pattern match |
${var^} | Convert first character to uppercase. |
${var^pattern} | Convert only if pattern match |
${var^^} | Convert all character to uppercase.} |
${var^^pattern} | Convert only if pattern match |
Using two clipboards: one main + one swap
Make import of bash functions from an URL, mhmhmhmh
❤️
This is marvelous. The shell is now so beautiful 🥺 💙
Paste, fold, ... ♥