On 06/17/2010 12:01 PM, Greg Freemyer wrote:
David,
I would think you could use a subshell to do it, but for some reason I can't get even the simple command below to work the way I expect:
sh -c "ls -l | awk '{ print $2 }' "
But, maybe it will prod your thoughts in a good direction.
Greg
Thanks Greg, It's the little things that kill me to :p That's why if you look at the bottom of any of my scripts after the 'exit 0', there is always a section labeled: ## Scraps Funny thing is, the scraps section is usually much longer than the finished script itself. I'll give the subshell approach a go. If it works, then all I need to do is wrap my expression in parenthesis and I'm good to go (never works out that easy though) Thank everyone for all your help. I have a bit of digestion of the new stuff to do, but I'll report back with what I come up with. In the mean time if anyone is still running 11.0 (or you have an ATI card of the pre-2400 series design and need to stay with 11.0) give the lynxdump.sh script a go and save the rpms you need to rebuild after a HD crash. For example, I ran it against the 11.0 update repo and got the list: http://www.3111skyline.com/dl/openSUSE_11.0/misc/updtget.bz2 Then simply parsed it with a for loop and grep against my local repo to whittle it down to just a few files I needed: http://www.3111skyline.com/dl/openSUSE_11.0/misc/final wget -i final and my local repo of the 11.0 update files was complete :-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org