Re: software update
Re: software update
- Subject: Re: software update
- From: "Adam K. Wuellner" <email@hidden>
- Date: Tue, 18 Jan 2005 16:26:27 -0600
On Jan 18, 2005, at 3:03 PM, Martha I. Espinosa wrote:
In terminal I run softwareupdate -l and get this result...
Software Update Tool
Copyright 2002-2003 Apple Computer, Inc.
Software Update found the following new or updated software:
! iCal155-1.5.5
iCal, 1.5.5, 7180K [required]
! iPod2004-11-15-0
iPod Updater 2004-11-15, (null), 20600K [required]
! iTunes4-4.7.1
iTunes, 4.7.1, 8792K [required]
! com.apple.pkg.MacOSXUpdate10.3.7-10.3.7
Mac OS X Update, 10.3.7, 26992K [required] [restart]
* AirPortSW-4.1
AirPort Software, 4.1, 13880K [restart]
1. How do I just get the following...
iCal 1.5.5
iPod Updater 2004-11-15, (null)
iTunes 4.7.1
Mac OS X Update 10.3.7
AirPort Software 4.1
Any help is appreciated.
One way, using a little Perl:
$ softwareupdate -l | perl -ne 'print "$1 $2\n" if /^\s+(.*), (.*), .*/'
iCal 1.5.5
iPod Updater 2004-11-15 (null)
iTunes 4.7.1
Mac OS X Update Combined 10.3.7
(My output is a little different 'cuz my software is a little
different.)
If you decide you want package names instead, this will get the
required ones (!'s):
$ softwareupdate -l | perl -ne 'print "$1\n" if /^\s*!\s*(.*)/'
iCal155-1.5.5
iPod2004-11-15-0
iTunes4-4.7.1
MacOSXUpdateCombo10.3.7-10.3.7
Mind the quotes if you try to put this in a do shell script...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden