Re: bash script
> Ugh. Using '[' (or 'test', for which it's an alias) in conjunction with
> a pipeline is often a sign you're doing the wrong thing. Try this
> instead:
> while isdnctrl status ippp1 | grep -q not; do
> ...
> done
...
> lsof -n | grep lftp | tr -s ' ' | cut -d' ' -f9
> I'm assuming here that there are always eight fields before the
> filename. If not, you could try using sed 's,[^/]*,,' or something to
> strip off everything before the first slash.
thx. everything works like a charm. can you recommend a book or an URL
on console scripting in general (bash,sed,awk,etc.) ?
thomas
Reply to: