locate xboing test tar -cvf xboing.tar -T test gzip xboing.tar cp xboing.tar.gz /mnt/usb the above command can copy a software which have been installed on someone system to your own system^-^ #!/bin/sh for fname in *;do tmp=`echo $fname|t
locate xboing > test
tar -cvf xboing.tar -t test
gzip xboing.tar
cp xboing.tar.gz /mnt/usb
the above command can copy a software which have been installed on someone system to your own system^-^
#!/bin/sh
for fname in *;do
tmp=`echo $fname|tr [a-z] [a-z]` #note ,tr can't act like this'tr fname [a-z] [a-z]'
# it must run as this'tr
mv $fname $tmp
done
the above code cost me lots of time!^-^
it can rename file name in your current dir from lowercase to upper case
this is very useful while you untar a tarball which is tared in a dos/windows system
date +%m-%d-%Y
the above cmd can output current time in MM-DD-YYYY format
tr -s '/n' '/n'
ls {*.wav,*.mp3}
the above cmd list all mp3 or wav files in current dir
ls {*.wav,*.mp3,*.log}
the above cmd list all mp3 or wav or log files in current dir
if [ $(date +%H) -ge 22 ]; then
echo whp; else
echo dll; fi
you can do diffrent work in diffrent time
grep 'd/+' test.txt
grep 'd/{1,/}' test.txt
the above cmd match lines which contain one or more 'd'
if you want to use xpdf,you must install /slackware/l/lesstif
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号