[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Annoying bash problem
> for i in `ls *`
> {
> echo Processing file: \"$i\"
> awk '{print "<a href="$i">"$i"</a><br>"}'
> }
>
ls | while read fname
do
echo "Processing $i ..."
echo "<a href=\"$i\">$i</a></br>"
done
You shouldn't need to call on awk for this. You could do this in pure awk
though as well :)
Chris...
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.