cmd
titterid
sudo apt show cmake 2>/dev/null|grep -i versionapt
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
sha256sum /path/to/data.txt > chksha256
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
nth -> grep + tail: c=$(cat son/1.json|grep -m $j "\n" |tail -n 1)grep
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
sed 's/\,/\,\,/2' $1 > $1.csv - add , after 2nd ,sed
round up - s2=$(printf %.0f $(echo "scale=2;$sec"|bc))bc
tar xvf $1.tar -C png 1>/dev/nulltar
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
ls=$(ls *mp4) -> 1.mp42.mp4mv
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
printf "%'d" 123456 # => 123,456printf
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
find -maxdepth 1 -type f -name \*.mp4 | sort -r > playlistsort
cat foo.txt | diff bar.txt -diff
diff -Naur /usr/src/openvpn-2.3.2 /usr/src/openvpn-2.3.4 > openvpn.patchdiff
patch < hello.patchdiff
diff -u 1.c 2.c > my.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
sed -i "s/\t/,/g" $i > ../csv/$ised
tr -d "[]"tr
sed -e "484,1084d" $1 > $1.sedsed
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
bc -lbc
pv : progress viewpv
ls -1|wc -lwc
sed '3d' in.txt > out.txsed
sed range of linessed
grep up to a certain stringsed
sed - using ampersand &sed
sed "s/,/\t/g" $1 > $1.tsvsed
grep -v : reversegrep
remove lines containg stringsed
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
replace-all-whitespace-with-a-line-breaksed
add
in the end of line -> sed -i s/$/\/g $1
sed
remove the first digit part -> ^[0-9]*sed
tab to comma using sedsed
awk -F":" '{ print $1 $3 }' /etc/passwdawk
change time stamp -> touch -ttouch
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
setter getter ex1awk
how-to-match-whitespace-in-sedsed