您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

一些自己实践得出的技巧1

2024/6/9 23:02:41发布25次查看
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 #so,if you want rename a file list,you must redirect tr's stdin to some command's stdout
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' the above cmd will del all empty line
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
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product