0
I need useful command to match the string "/pci.../pci.../pci..../scsi..../disk..." with awk or sed? ( I need to put this command in my ksh script )
remark 1 [...] can be any string , and “pci pci pci scsi disk” are default strings remark 2 I have Solaris machine so syntax should fit Solaris
example
prtpicl -v |grep :disk0 | awk '{print $2}'
give the output
/pci@0/pci@0/pci@2/scsi@0/disk@0
1
[...]
can not be any string. it would probably be very bad if it were to contain/
. – Daniel Beck – 2012-01-17T11:35:11.263