Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@×××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: xterm menu
Date: Mon, 19 Dec 2016 19:42:19
Message-Id: 20161219193614.9204.2CD21F9A@matica.foolinux.mooo.com
In Reply to: Re: [gentoo-user] xterm menu by lee
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

Replies

Subject Author
Re: [gentoo-user] Re: xterm menu lee <lee@××××××××.de>