make multiple directories
mkdir -p {dir,dir2}
tree
.
├── dir
└── dir2make multiple directories
mkdir -p {dir,dir2}
tree
.
├── dir
└── dir2touch "$(date +%F) filename.txt"creates file named 2021-12-06 filename.txt
touch "$(date) filename.txt"a bunch of options for lsd config
# == Date ==
# This specifies the date format for the date column. The freeform format
# accepts an strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>'Related issue:
| # Text color - normal | |
| fgblack="$(tput setaf 0)" # Black | |
| fgred="$(tput setaf 1)" # Red | |
| fggreen="$(tput setaf 2)" # Green | |
| fgyellow="$(tput setaf 3)" # Yellow | |
| fgblue="$(tput setaf 4)" # Blue | |
| fgpurple="$(tput setaf 5)" # Purple | |
| fgcyan="$(tput setaf 6)" # Cyan | |
| fgwhite="$(tput setaf 7)" # White |
| zzzzzz |
curl to get the JSON response for the latest releasegrep to find the line containing file URLcut and tr to extract the URLwget to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \| #!/bin/bash | |
| GEANY_PATH="/usr/bin/geany" | |
| if [ -z "$XDG_RUNTIME_DIR" ]; then | |
| [ -z "$XDG_CACHE_HOME" ] && | |
| XDG_CACHE_HOME="$HOME/.cache" | |
| XDG_RUNTIME_DIR="$XDG_CACHE_HOME" | |
| fi |
uses pastel to take a text file with a list of colors (in hex) and convert them to HSL. my purpose in this is to replace hardcoded hex color codes in GTK themes with named variables.
this gets less and less useful and finished as it goes on. incomplete and infunctional.
NOTE: the # needs to be removed from the hex code for this to work
cat INPUT.txt | xargs -I {} sh -c "echo \#{}; pastel format hsl {}" > OUTPUT.txt