On Fri, Sep 28, 2007 at 12:35:44PM +1000, Sonia Hamilton wrote:
> I'm doing this using awk and getting correct results:
> 
> $ dirs -v | awk 'BEGIN { OFS=":"; ORS=" "; } ; { print $1,$2 }'
> 0:/home 1:/etc 2:~ 
> 
> I'm trying to do this using Perl (as gnu awk not available on target
> system), and getting stuck:

'a2p' (awk to perl) is pretty awesome for situations like this.

Check it out -- it would be installed if perl is.



Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to