![]() |
|
|
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 |
| i cannot assign float point numbers to an array in solaris | naree | SUN Solaris | 11 | 02-27-2008 04:06 AM |
| to assign cut values to an array | Syms | UNIX for Dummies Questions & Answers | 6 | 10-29-2007 06:42 AM |
| Can I assign the contents of file into an array? | murtaza | Shell Programming and Scripting | 10 | 03-28-2007 04:58 AM |
| declare, assign variables using array, counter, loop | egkumpe | Shell Programming and Scripting | 3 | 08-09-2004 11:56 AM |
| assign to variable | AkumaTay | UNIX for Dummies Questions & Answers | 1 | 05-18-2002 03:11 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
The below script is not working. Could anyone help me on this?
#!/bin/bash dirs="not_using_0" for entry in *; do [ -d "$entry" ] && dirs="$dirs $entry" done dirarray= ($dirs) output is --------- arrayshell.sh: syntax error at line 6: `dirarray=' unexpected How to assign a varibale value in array array= ($variable) ? is this correct? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|