1. 批处理修改编码格式: find ./ name
2. :17,25g/^$/d 是删除17行到25行的空白部份
3. 删除当前行后面所有的行:,$d
4. 删除第一行到当前行:1,.d
5. 只取第一行,用 head -1
6、先24bit 源为16bit wav : ffmpeg -i in.wav -acodec pcm_s16le out.wav
7. 16bit wav转flac. : ffmpeg -i out.wav -acodec flac out.flac
8. ?Mp3处理为Wav : ffmpeg -i "xxx.mp3" -f wav -ar 16000 -ac 1 "yyy.wav"
-ar 指定采样率
-f 输出格式
-ac 指定声道
9. ?Mp4处理为Wav : ffmpeg -i "xxx.mp4" -f wav -ar 16000 -ac 1 -vn "yyy.wav"
10. ffmpeg增大音量的命令如下: ffmpeg -i inputfile -vcodec copy -af "volume=10dB" outputfile
OR
ffmpeg -i D:/int.mp4 -vol 1000 D:/out.mp4
11. ffmpeg : http://blog.chinaunix.net/uid-24567872-id-3417402.html
12. 删除每行前10个字符: :%s/^.\{10\}//
13. 删除每行后10个字符 : :%s/.\{10\}$//
14. 删除所有空行: :g/^\s*$/d
整行去重: cat new.txt| sort |uniq | wc -l
加##分隔符: awk '{print NR "##"$0}' all_forLM_weigh_gbk.txt > all_forLM_weigh.txt.add
ngram -lm base.arpa : /wls/shirley/Model_Versions/LM_VERSIONS/jinpaiHuashu/ALL_TYPE_MODELS (ngram -lm ${lm} -order 2 -ppl ${file} -debug 1 > ${ppl})
compute-lm-mix : compute-best-mix 12345batch.ppl base.ppl vehicleType.ppl chePaiAbbrv.ppl pinganWeb.ppl TrafficACCI.ppl
sudoers修改root权限问题:
[root@cnsz035237 /]# chmod -R 777 /etc/sudoers
chmod: changing permissions of '/etc/sudoers': Operation not permitted
解决方法:
[root@cnsz035237 etc]# lsattr sudoers
----i----------- sudoers
[root@cnsz035237 etc]# chattr -i sudoers
[root@cnsz035237 etc]# visudo
finally 将sudoers访问权限恢复440: chmod 440/etc/sudoers