I have a one line stream of data that needs to be dissected. (Pretend the following is all on one line)
The command I'm running is:
Desired output is:
Is there a way I can shorten the above command?
Code:
i45543,1,3,0,application3,audit_arch_1yr,/.secure/etc/audit.server1.200705071730.gz,
/.secure/etc/audit.server1.200705071750.gz,
/.secure/etc/audit.server1.200705071810.gz,,1178593694,0
The command I'm running is:
Code:
bpdbjobs -report -all_columns -jobid 45543 | sed 's/,/&\^J/g' | grep ^/ | cut -f1 -d,
Desired output is:
Code:
/.secure/etc/audit.server1.200705072050.gz
/.secure/etc/audit.server1.200705072110.gz
/.secure/etc/audit.server1.200705072130.gz
Is there a way I can shorten the above command?