cmd
titterid
seq 1 9 | shufshuf
sed -i "1,2d" - delete specific linessed
grep -o: only matchinggrep
diff only works on filesdiff
date +%sdate
round up - l2=$(printf "%.0f\n" $le)printf
sed -i "s/^Q:1\/4=.*/Q:1\/4=$1/g" *abcrel
sed -i "/K:/a Q:1/4=120" *.abcins
grep -n "wd" filegrep
r=$(echo $j|tr "[:upper:]" "[:lower:]")tr
echo ${q%%.*}num
sed "s/.png//1 - 1st occurancesed
sed -i "1i $ide" $1 sed
sed -i "/^\/\//d" $1 ; delete line beginning from //sed
sed -i s/$'\t'//g src/*.csed
r2=$(echo $r|tr [:upper:] [:lower:])tr
date +%Y-%m-%d-%H:%M; 2021-11-01-16:30date
adduser nod audiousr
date +%m-%ddate
tr [:upper:] [:lower:]tr
dupe ; printf '%s\n' "${arr[@]}"|awk '!($0 in seen){seen[$0];next} 1'awk
first match : grep -m 1grep
c=$(ls dir|wc -l)wc
printf "%.0f\n" $dur - round upprintf
grep -b : positiongrep
cp -u (--update); -ruvcp
cp -ruT old-dir new-dircp
ls -lt --time-style=long-iso; -l:listing format, -t:sort by timels
wc op1=line, op2=word, op3=charwc
date "+%Y-%m-%d"date
round up - s2=$(printf %.0f $(echo "scale=2;$sec"|bc))bc
uid=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)random
sed -i '1,2d' filesed
nth occur: sed 's/\,/\,"/1' $1|sed 's/\,/",/2'sed
grep -r key *; recursivegrep
while read -r n;do echo $n;done < $1read
sed -n '/zad/p' < in.txtsed
printf "I ${RED}love${NC} Stack Overflow\n"printf
printf "%'d\n" $figprintf
sed '/pattern to match/d' ./infile - specific stringsed
egzactegzact
echo $str | kakasi -Ha -Ka -Ja -Ea -kakakasi
sed 's/^\(.\{22\}\)//g' ; position 22sed
delete empty lines - sed '/^\s*$/d'sed
map(){ echo "map"} ; functionfunc
sed -n -e 1,2p -e 4p my.txtsed
= prints the current line numbersed
rename episode files with spacesed
sed -n 1p my.txtsed
sed '2,4!d' somefile.txt - print specific rangesed
printf "%.0f" $gaiprintf
mplayer -playlist playlistsort
cat foo.txt | diff bar.txt -diff
patch < hello.patchdiff
remove . - sed s/\\.//sed
remove / - sed s/\\///sed
tar Jxfv xxx.tar.xztar
sed -i '33i\anything' my.txtsed
bc <<< "scale=2;220/170"bc
remove "." : sed s/\\.//gsed
sl cmdcmd
bc <<<"1+5+7^2"bc
awk numeric funcawk
round up with awkawk
qua=$(echo "scale=5;$bar/4"|bc)bc
https://hydrocul.github.io/wiki/commandscmd
http://difff.jpdiff
sed 's/-\(.*\).mp4/\1/' $1sed
LANG=C sed -i 's/[\d128-\d255]//g' FILEsed
cat foo.txt | sort | uniquniq
sed - an introsed
課金の検算などでよく利用するawkでの数値演算awk
remove lines with specific stringsed
tr -d "[]"tr
mv -- -file filemv
sed s/.//3sed
echo -e : escapeecho
match any stringsed
remove empty lines - sed -i '/^\s*$/d' $1sed
sed '/^\s*$/d' - empty linessed
pv : progress viewpv
sed range of linessed
grep up to a certain stringsed
sed - using ampersand &sed
grep -v : reversegrep
mkdir -p $1/{cmd,py,blend}mkdir
mkdir-creating-multiple-subdirectories-one-commandmkdir
ntp scrawk
base api docsbase
rename spacesed
echo -e "\e[?48c"echo
change delimitersed
* * * * * ; every minutecron
tab to comma using sedsed
awk -F":" '{ print $1 $3 }' /etc/passwdawk
rename with sed ex2sed
bash seq ex1seq
rename file with sed ex1sed
logical AND: &&, logical OR:sed
adduser non-interactiveadduser
zip -r arch.zip /home/archzip
echo -eecho
seq 1 3 - generate integer 1-3seq
sustr - adding , to digitawk
awk sum integer ex1awk
bash array ex1awk
awk field separater FS ex1awk