[GRLUG] Bash split question, ..

L. V. Lammert lvl at omnitec.net
Thu May 26 15:35:40 EDT 2011


I'm thinking there must be a simple way to do this in bash, ..

Starting with:

mailq | grep MAILER | xargs postsuper -d  ___________--

In perl it might be something like split (' ',$1), but it seems much 
simpler to use the built-in bash split (and more efficient since we 
would be doing thousands a night). Unfortunately, I cannot grok any 
docs that make any sense <g>!

	Lee


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list