![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Storing commands in $variables. | Paulw0t | Shell Programming and Scripting | 7 | 08-08-2008 06:42 PM |
| Using variables in sed commands | hcclnoodles | Shell Programming and Scripting | 2 | 01-02-2007 08:56 AM |
| Referencing variables in commands | mharley | Shell Programming and Scripting | 3 | 03-31-2005 02:37 AM |
| Passing variables/arguments/parameters to commands | Perderabo | Answers to Frequently Asked Questions | 0 | 06-13-2004 08:37 PM |
| Subtracting Variables which are commands | Astudent | UNIX for Dummies Questions & Answers | 2 | 03-30-2001 10:55 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I'm back! Ok, I'm trying to use a variable with a value of a unix command. So when I try a=`ls`, then echo $a I get the correct answer. But when I try it with a pipe: a=`ls | wc -c`, then echo $a I get: filename: a: command not found I've tried so many ways I presumme it's the pipe that is confusing things. Please help, or di I need to try things a different way? Thanks. theA |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|