[GLLUG] why doesn't this work?
Cory Spitz
spitzcor at cray.com
Fri Oct 24 09:27:39 EDT 2003
On Fri, 24 Oct 2003, Mike Rambo wrote:
> >
> > Mike, why not omit awk from the one-liner: for target in `ls -1`; do cat
> > $target >>makeall.mysql; done?
> >
> > "ls -1" returns the one filename per line so you can omit awk. I tried
> > it this way and I can concatenate all files into a single file. Even
> > shorter is the standard: cat *.mysql >>makeall.mysql.
> >
> > --bong
> >
>
> Well, no. ls -l returns one line but there is much more than just the
> filename on it.
>
> -rw-rw-r-- 1 mrambo mrambo 838 Jan 1 2003 building.mysql
>
There is a difference between `ls -l` (ell) and `ls -1` (one).
-Cory
More information about the linux-user
mailing list