Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!faatcrl!jimb From: jimb@faatcrl.UUCP (Jim Burwell) Newsgroups: comp.sys.amiga Subject: Re: abcfd20 downtime Message-ID: <646@faatcrl.UUCP> Date: 31 Dec 90 09:05:33 GMT References: Organization: FAA Technical Center, Atlantic City NJ Lines: 42 tadguy@abcfd01.larc.nasa.gov (Tad Guy) writes: >I'm also messing with the ftp server again, so there may be brief >periods where things may not work right. If there's a persistent >problem, send mail... Well, I, or maybe I should say dfilter noticed that the "dir" command now omits the group field of the normal dir listing. This through dfilter for a loop. Yes, I know about the index file at the ftp root. It just insn't updated often enough for me, so I use dfilter :-). Anyways, here's a quick and dirty awk script which will make dfilter happy: { if($3 != "") printf("%s %2s %8s %8s %8s %s %2s %5s %s\n", $1,$2,$3,"daemon",$4,$5,$6,$7,$8); else printf("%s\n",$0); } Just run the "dir" output through it, and redirect the output to some file, then run dfilter on the output file. BTW, I usually run dfilter on Unix boxes, but this script also works for gawk on the Amiga. The script will also run as a Unix shell script if made into a one-liner like so: #!/bin/sh awk '{ if($3 != "") printf("%s %2s %8s %8s %8s %s %2s %5s %s\n",$1,$2,$3, "daemon", $4,$5,$6,$7,$8); else printf("%s\n",$0); }' $1 Just make sure all the awk command is a one-liner with no CRs... C'ya, Jim -- UUCP: ...!rutgers!faatcrl!jimb Internet: jimb@faatcrl.UUCP Under brooding skys and watchful eyes On convulsive seas of false urgency We walk empty corridors in vain - "No Exit", Fate's Warning