首頁 資料庫 mysql教程 一些自己实践得出的技巧1

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

Jun 07, 2016 pm 03:11 PM
locate 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|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

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

Win11小技巧分享:一招跳過微軟帳號登入 Win11小技巧分享:一招跳過微軟帳號登入 Mar 27, 2024 pm 02:57 PM

Win11小技巧分享:一招跳過微軟帳號登入

新手製作表格有哪些技巧 新手製作表格有哪些技巧 Mar 21, 2024 am 09:11 AM

新手製作表格有哪些技巧

織夢CMS站群實作分享 織夢CMS站群實作分享 Mar 18, 2024 am 10:18 AM

織夢CMS站群實作分享

VSCode入門指南:初學者必讀,快速掌握使用技巧! VSCode入門指南:初學者必讀,快速掌握使用技巧! Mar 26, 2024 am 08:21 AM

VSCode入門指南:初學者必讀,快速掌握使用技巧!

老手必備:C語言中*與&的技巧與注意事項 老手必備:C語言中*與&的技巧與注意事項 Apr 04, 2024 am 08:21 AM

老手必備:C語言中*與&的技巧與注意事項

PHP程式設計技巧:如何實現3秒內跳轉網頁 PHP程式設計技巧:如何實現3秒內跳轉網頁 Mar 24, 2024 am 09:18 AM

PHP程式設計技巧:如何實現3秒內跳轉網頁

Win11技巧大揭密:如何繞過微軟帳號登入 Win11技巧大揭密:如何繞過微軟帳號登入 Mar 27, 2024 pm 07:57 PM

Win11技巧大揭密:如何繞過微軟帳號登入

PHP編碼實踐:拒絕使用goto語句的替代方案 PHP編碼實踐:拒絕使用goto語句的替代方案 Mar 28, 2024 pm 09:24 PM

PHP編碼實踐:拒絕使用goto語句的替代方案

See all articles