![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /etc/utmp file does not get updated with boot up details | jyoti_mil | UNIX for Advanced & Expert Users | 1 | 06-11-2007 11:41 AM |
| logging SFTP details in a log file... | santy | UNIX for Dummies Questions & Answers | 4 | 08-19-2006 03:05 PM |
| Read relevent details from Log File | thinakarmani | Shell Programming and Scripting | 6 | 05-04-2006 04:48 AM |
| Details on the ls command and file types | jacob358 | UNIX for Dummies Questions & Answers | 4 | 07-26-2005 01:12 PM |
| What file contains boot up init details? | emplate | HP-UX | 4 | 05-04-2005 10:09 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
i want to extract details for particular file
Hi i have following file
uuid ( RO) : 62701790-60da-dd9a-669d-a563aac1c435 host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed sr-uuid ( RO): 62103d07-e0aa-acf3-2d9f-414ad3377bd0 device-config (MRO): location: /dev/xapi/block currently-attached ( RO): true uuid ( RO) : 99158eac-8cce-39bd-4893-8576e7f18234 host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed sr-uuid ( RO): 3a1ff5ac-ed95-1deb-da89-ebc3459d0ae8 device-config (MRO): port: 3260; SCSIid: 149455400000000000000000001000000710300000d000000; target: 10.0.71.71; targetIQN: iqn.2001-04.com.example:storage.disk2.sys1.xyz currently-attached ( RO): true uuid ( RO) : 4a65094e-8e85-46e6-2c68-0987fe14decd host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed sr-uuid ( RO): 655ad503-1a5f-1221-9181-9a5fb37cb672 device-config (MRO): location: /dev/xapi/cd currently-attached ( RO): true uuid ( RO) : a871cc47-185a-7886-5e7f-e2e6c0fb18e0 host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed sr-uuid ( RO): db6cece4-4847-ae2f-2b0b-f3901697e2b3 device-config (MRO): device: /dev/sdd currently-attached ( RO): true uuid ( RO) : 26c74e8b-d931-70a5-11b7-2f36262d116a host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed sr-uuid ( RO): 762f3b74-aab9-8f7f-887d-15c1886314e0 device-config (MRO): device: /dev/sdc currently-attached ( RO): true so the file is still big now my question is i want to extract the UUID of (RO) of the any device if i pass as argument like "/dev/sdc" then it should pass me that particular uuid (RO) as "26c74e8b-d931-70a5-11b7-2f36262d116a" so can anybody tells wht exact command ? i trdied with awk and grep still not able to reach the final. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|