Unix Shell - KSH: Accessing individual words in a variable string (like arrays)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > November 2007 > KSH: Accessing individual words in a variable string (like arrays)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author KSH: Accessing individual words in a variable string (like arrays)
usenet@sta.samsung.com

2007-11-30, 1:47 am

Kindly suggest the ksh equivalent of the following csh script snippet


##############################
set presidents=(Washington Adams Jefferson Madison Monroe Qunicy-Adams
Jackson)

echo $presidents[1] $presidents[4-7]
##############################
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com