如何用find在opera的cache中找到文件类型为mp3的文件?

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
yechf
帖子: 305
注册时间: 2006-04-27 12:18
来自: 浙江德清武康

如何用find在opera的cache中找到文件类型为mp3的文件?

#1

帖子 yechf » 2011-08-08 21:28

如题。
我经常听歌,有时候想保存,
我习惯opera,想在cache下看看。
可惜里面保存的文件像天书样,
例如
./g_0063/opr01BQ6.tmp
有谁知道,拜托告知,谢谢,
头像
wiewi
帖子: 628
注册时间: 2008-11-20 22:50
系统: ArchLinux

Re: 如何用find在opera的cache中找到文件类型为mp3的文件?

#2

帖子 wiewi » 2011-08-08 22:10

find ~/.opera/cache*/ -exec file {} \; | grep 'Audio'

Audio不一定准确,file xxx.mp3 输出:
big big world.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, Stereo
关键词太多,如果Audio不好使,你可以试试别的
===我的小窝===
无聊吗?点我吧,楼主迫切期待你的光临~~
又一个轮子
------------------------------------
这年头,没有1000贴都不好意思见人了
------------------------------------
献丑不如藏拙
------------
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 如何用find在opera的cache中找到文件类型为mp3的文件?

#3

帖子 eexpress » 2011-08-08 22:13

代码: 全选

● type find-opera-1M 
find-opera-1M 已被别名为“find ~/.opera/cache*/ -cmin -60 -size +1000k -printf "------\t%p\t► %Ac\t► %kK\v\r" -exec file -b {} \;”
or
opera:cache
● 鸣学
头像
yechf
帖子: 305
注册时间: 2006-04-27 12:18
来自: 浙江德清武康

Re: 如何用find在opera的cache中找到文件类型为mp3的文件?

#4

帖子 yechf » 2011-08-08 22:15

楼上聪明,
:em11
我怎么没有想到。
头像
yechf
帖子: 305
注册时间: 2006-04-27 12:18
来自: 浙江德清武康

Re: 如何用find在opera的cache中找到文件类型为mp3的文件?

#5

帖子 yechf » 2011-08-08 22:32

grep ‘III’
准确否?
谢谢WIEWI,EE。
回复