On Tuesday 29 April 2008 20:03,
lihao0129@gmail.com wrote:
> I have a bash script which accept two input, one from a file, another
> from the output of a shell pipeline. thought I can use process
> substitution here, like:
>
> awk -F'.' '
> FNR == NR {
> # do_sth();
> next;
> } {
> # do_other_thing();
> }
> ' file1.txt <( find -type f -exec file {}
> + | \
> awk -F: '$2~/image/{split($1,b,"/")
rint
> b[2]}' | \
> sort -nk1 | uniq -
> c' \
> )
It looks like the above script has an unmatched single quote (the one after
c, penultimate line).
And, why is the script formatted that way? Is all that caused just by line
wraps?
--
D.