bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Taking input line by line from a config file in Bash


From: Matthew_S
Subject: Re: Taking input line by line from a config file in Bash
Date: Tue, 8 Jan 2008 05:54:35 -0800 (PST)

I'm having a bit of trouble with one of the lines in my config file.  'ls -l
| cut -d ' ' -f1' doesn't want to pass through the script.  Here's the
output;

ls -l | cut -d ' ' -f1
ls: |: No such file or directory
ls: cut: No such file or directory
ls: ': No such file or directory
ls: ': No such file or directory

It seems to think I want to do an ls on the | etc. and isn't treating the
line as a command as a whole like all the other commands are treated.

I've tried placing it in '' "" & `` but none of those work.  I'm not sure
how to get this line through?
-- 
View this message in context: 
http://www.nabble.com/Taking-input-line-by-line-from-a-config-file-in-Bash-tp14575394p14690151.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]