awk question
- From: Gary Kline <kline@xxxxxxxxxxxxxxx>
- Date: Mon, 5 Mar 2007 16:35:06 -0800
Guys,
Having found $9 , how do I /bin/rm it (using system()--yes??)
in an awk one-liner?
I'm trying to remove from packages from long ago and find and
print them with
ls -lt | awk '{if ($8 == 2006) print $9}';
but what I want to remove the file pointed at by $9. I've tried
FILE=ARGV[9]; and using FILE within my system() call, but no-joy.
What's the magic here?
thanks in advance,
gary
--
Gary Kline kline@xxxxxxxxxxx www.thought.org Public Service Unix
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: awk question
- From: Scott Oertel
- Re: awk question
- From: Derek Ragona
- Re: awk question
- From: Chuck Swiger
- Re: awk question
- From: Bill Campbell
- Re: awk question
- Prev by Date: Re: Install with USB keyboard
- Next by Date: Re: awk question
- Previous by thread: /libexec/ld-elf.so.1: ssh: Undefined symbol "ssh_get_progname"
- Next by thread: Re: awk question
- Index(es):
Relevant Pages
|