i=0
while read h
do
if [[ $h == *"<h1>"* ]]
then i=$((i + 1))
fi
echo $h >> $(printf "%0.3d.xhtml" $i)
done < a.html
a=1
for i in $(cat a.txt)
do
j=$(sed -n "$a p" b.txt)
mv "$i" "$j"
a=$(($a+1))
done
IFS=$'\n'
sed -n '1~2p' c.txt > a.txt
sed -n '2~2p' c.txt > b.txt
a=1
for i in $(cat a.txt)
do
j=$(sed -n "$a p" b.txt)
echo "$j" >> d.txt
echo "$i" >> d.txt
a=$(($a+1))
done
echo {one,two,three}{1,2,3}
for i in {1..10}
find | while read i
do
echo $i
done
while true
do
命令
done
[[ "$C" = "1" ]] && {
命令
}
if [ $? -eq 0 ]
then
echo 1
else
echo 0
fi
if [[ $A -gt 1 && $B -eq 0 ]]
then
X=$(expr $X / $A)
fi
awk -F= '/^rpc-secret/ {print $2}' a.txt
sed -E 's/<[^>]+>//g' a.html
sed ":a;N;s/\n//g;ta" a.txt
sed '/^a/s/b/c/' a.txt
sed /key/s/.*/key=123/ a.txt
sed -i /ABC/d a.txt
sed 3,7d a.txt
sed 3iabc a.txt
sed s/a/b/g a.txt
sed -n 1~2p a.txt
uniq
sort -u a.txt
shuf -i 1-10
grep -E '.{1,}' a.md
grep -rn 'abc' /etc/
grep -n 内容 文件 | grep -o ^[0-9]*
tr -d 'aa' < a.txt
b=${a%)*}
b=${a#*(}
IFS=$'\n'
cat -n a.txt
cat << EOL > a.txt
hello world
EOL
printf "%0.2d.txt" $i
basename $i .md
i = $(expr $i + 1)
cities=("1" "2" "3")
for city in "${cities[@]}"
iconv -f gbk -t utf-8 gbk.txt > utf-8.txt
dos2unix file
export all_proxy=ip:port
lsof -Pi
wget -e http_proxy=http://127.0.0.1:7890 example.com/index.html
curl -x socks5://127.0.0.1:1024 example.com
curl -X POST -d key=123456 example.com
curl -u "USERNAME":"PASSWORD" -T "d/file" WEBDAV_URL -w "%{http_code}"
curl -u USERNAME:PASSWORD -O WEBDAV_URL
ln -s a b
uuidgen
tput sc; tput cup 23 45; echo Input from tput/echo at 23/45; tput rc
uname -a
id
useradd -s /usr/bin/nologin atri
dd if=/dev/urandom of=test bs=1M count=6
tar -czf file.tar.gz path/
tar -xvf file.tar
gzip file
date +"%Y-%m-%d %H:%M:%S"
tree -fipDL 2
sync && echo 3 | tee /proc/sys/vm/drop_caches
ldd file
ls
nohup 命令 > log 2>&1 &
screen -dmS 会话名 命令
screen -r 会话名
htop
openssl enc -aes-256-cbc -pbkdf2 -salt -in text.txt -out encrypt.txt
su nobody -s /bin/bash -c '命令'
sfdisk -d /dev/sdb > sdb.bkp
sfdisk /dev/sdb < sdb.bkp
fish_add_path /root/bin
pacman
dwebp a.webp -o a.png
avifenc cover.jpg cover.avif
jpegoptim --strip-all --all-progressive -o -f --max=50% a.jpg
optipng -o3 a.png
flac -d a.flac
flac -s --compression-level-5 a.wav
flac a.flac -V -s --best --no-error-on-compression-fail -o b.flac
fastfetch
genact
rclone mount name:/a /b --cache-dir /c --vfs-cache-mode writes
certutil -hashfile file SHA256