1 |
On 2016-12-19 19:46, lee wrote: |
2 |
|
3 |
> perl -e 'print "$_\n" foreach(split(/,/, |
4 |
> "/usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,built-ins"));' |
5 |
> | xargs ls |
6 |
|
7 |
> That brings up the question if there is some alternative to perls split |
8 |
> in coreutils or bash. The split of coreutils appears to be supposed to |
9 |
> be doing something rather useless? |
10 |
|
11 |
[5+0]~$ FOO='foo,bar,baz' |
12 |
[6+0]~$ printf '%s\n' `echo $FOO | tr ',' ' '` |
13 |
foo |
14 |
bar |
15 |
baz |
16 |
|
17 |
-- |
18 |
Please *no* private Cc: on mailing lists and newsgroups |
19 |
Personal signed mail: please _encrypt_ and sign |
20 |
Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html |