Unix Programming - Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (of w

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2007 > Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (of w





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 Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (of w
Lucky7

2007-07-19, 1:20 pm

Hi all,

I have just started exploring bash. I need to cut the set of words
into an array of elements.
e.g.

File_NAME=`find .`

The command returns a string with all the filenames concatenated. Now
i want to get each of the file separately for processing.

Also, i don't want to use a for loop. Can you please help me with a
way to achieve this.

Thanks
Lucky

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com