分页: 1 / 1
发现这样找图片最方便
发表于 : 2013-06-17 23:41
由 eexpress
代码: 全选
● locate fs-directory.svg|xargs eog
忏悔过去的错误。
Re: 发现这样找图片最方便
发表于 : 2013-06-19 10:46
由 bzhao
我帮你改善一下
locate -0 fs-directory.svg|xargs -0 eog
(0 是 zero)
这样可以支持有空格的文件名
Re: 发现这样找图片最方便
发表于 : 2013-06-19 11:03
由 eexpress
bzhao, 不错。还没注意到这。
以前是自己写一个function做的。
Re: 发现这样找图片最方便
发表于 : 2013-06-19 16:23
由 youzhiyili
菜鸟路过,先收藏再说
Re: 发现这样找图片最方便
发表于 : 2013-06-20 11:06
由 lilydjwg
我做了个 wrapper:
https://github.com/lilydjwg/myhaskells/ ... ylocate.hs
还有替代用的 shell 版:
[bash]
[[ -n $commands[l] ]] || alias l='locate'
[[ -n $commands[lre] ]] || alias lre='locate -b --regex'
[[ -n $commands[lrew] ]] || alias lrew='locate --regex'
[/bash]