I'm trying to parse an output log and I've managed to reduce the output to the lines I need. But I'm having trouble pulling out only the info I'm interested in. The output is 40+ lines and here is a sample
Installing AppFresh 0.8.5.pkg from ./InstallerFiles/CustomPKG/26 (26)
Installing BatChmod 1.51.pkg from ./InstallerFiles/CustomPKG/27 (27)
Installing Fetch 5.5.pkg from ./InstallerFiles/CustomPKG/28 (28)
Installing Onyx 2.1.pkg from ./InstallerFiles/CustomPKG/29 (29)
Installing Stuffit 2010.pkg from ./InstallerFiles/CustomPKG/30 (30)
Installing TextWrangler 3.0.pkg from ./InstallerFiles/CustomPKG/31 (31)
Installing Timbuktu Pro Enterprise Es 8.8.pkg from ./InstallerFiles/CustomPKG/32 (32)
I'm only interested in package name
AppFresh 0.8.5.pkg
BatChmod 1.51.pkg
Fetch 5.5.pkg
Onyx 2.1.pkg
Stuffit 2010.pkg
TextWrangler 3.0.pkg
Timbuktu Pro Enterprise Es 8.8.pkg
I figured I can trim the front with
sed -e 's/^ *[^ ]* //'
But I can't figure out how to trim excess off the end of each line.
Any help would be appreciated