![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Array problem | ajgwin | Shell Programming and Scripting | 0 | 05-27-2008 10:36 AM |
| problem with the blank spaces in array | kamicasse | UNIX for Dummies Questions & Answers | 4 | 12-06-2007 02:40 PM |
| find an available item in array | fongthai | Shell Programming and Scripting | 4 | 07-16-2007 03:06 AM |
| array problem | shary | Shell Programming and Scripting | 6 | 02-10-2007 05:48 AM |
| char array problem | DebianJ | High Level Programming | 4 | 06-25-2005 11:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem with array=($(find ....)
hi,
I get a *.dat files list in an array using: Code:
array=($(find . -name "*.dat")) For instance if I have: Code:
x@x:~/tmp$ ls *.dat test1.dat test 2.dat test3.dat Code:
array=($(find . -name "*.dat"))
x@x:~/tmp$ echo ${array[0]}
./test1.dat
x@x:~/tmp$ echo ${array[1]}
./test3.dat
x@x:~/tmp$ echo ${array[2]}
./test
x@x:~/tmp$ echo ${array[3]}
2.dat
thank you jul |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|