zsh-users
 help / color / mirror / code / Atom feed
* convolutions
@ 2015-11-07  2:15 Ray Andrews
  2015-11-07  2:49 ` convolutions ZyX
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Ray Andrews @ 2015-11-07  2:15 UTC (permalink / raw)
  To: Zsh Users

Gentlemen:

     echo "$(eval echo "\${$(cat in_file)}")" >! out_file

That's the best I've been able to do expanding color variables, eg. " 
${red} " into their native " \e[31;1m " in a file.  It's not a prize 
winner as far as zsh obfuscation goes, still, can it be done more 
simply? Also, I'd not be surprised to learn that there's one of those 
ancient little utilities that already does that:

     cat in_file | ancient_utility > outfile

is there?



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-11-09  8:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07  2:15 convolutions Ray Andrews
2015-11-07  2:49 ` convolutions ZyX
2015-11-07  4:10   ` convolutions Ray Andrews
2015-11-07  5:37 ` convolutions Mikael Magnusson
2015-11-07  6:16   ` convolutions Ray Andrews
2015-11-07  6:38     ` convolutions Mikael Magnusson
2015-11-07 15:35       ` convolutions Ray Andrews
2015-11-07 17:26         ` convolutions ZyX
2015-11-07  5:38 ` convolutions Bart Schaefer
2015-11-07  6:33   ` convolutions Ray Andrews
2015-11-07  9:32     ` convolutions Bart Schaefer
2015-11-07  9:40       ` convolutions Bart Schaefer
2015-11-07 16:09       ` convolutions Ray Andrews
2015-11-07 17:33         ` convolutions Bart Schaefer
2015-11-07 18:28           ` convolutions Ray Andrews
2015-11-07 17:17   ` convolutions Martin Vaeth
2015-11-08 15:27     ` convolutions Ray Andrews
2015-11-08 19:14       ` convolutions Bart Schaefer
2015-11-08 21:06         ` convolutions Ray Andrews
2015-11-09  8:50       ` convolutions Martin Vaeth

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).