Sponsored Content
Top Forums Shell Programming and Scripting i want to extract details for particular file Post 302227436 by bp_vardhaman on Thursday 21st of August 2008 08:15:56 AM
Old 08-21-2008
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
 

10 More Discussions You Might Find Interesting

1. HP-UX

What file contains boot up init details?

I want to get my telnetd to run on startup and was wondering where it was? im used to having it in /etc/init.d/rc.d but it is not the same in hp-ux :( thanks all (4 Replies)
Discussion started by: emplate
4 Replies

2. UNIX for Dummies Questions & Answers

Script for parsing details in a log file to a seperate file

Hi Experts, Im a new bee for scripting, I would ned to do the following via linux shell scripting, I have an application which throws a log file, on each action of a particular work with the application, as sson as the action is done, the log file would vanish or stops updating there, the... (2 Replies)
Discussion started by: pingnagan
2 Replies

3. Shell Programming and Scripting

Contents and details extract problem asking...

Input: length align type 5453 8666 + length align portion 5453 8666 + length align range 5453 5616 + length align name 5453 6121 + length align age 5617 6121 + length align name 7214 7404 + length ... (11 Replies)
Discussion started by: patrick87
11 Replies

4. Shell Programming and Scripting

Extract details from XML file

Hi , I have one xml file contains more than 60 lines. I need to extract some details from the file and store it in new file.Not the whole file Please find the xml file below: <?xml version="1.0" encoding="UTF-8"?> <DeploymentDescriptors xmlns="http://www.tibco.com/xmlns/dd"> ... (6 Replies)
Discussion started by: ckchelladurai
6 Replies

5. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies

6. Shell Programming and Scripting

Details within file

Hi, I am trying to write a script with goes through thousands of XML documents to pull out the values for a particular tag to a .txt file. For example I have file1.xml file2.xml file3.xml . . . fileN.xml All these files have a tag called <systemID>. The value that sits within... (6 Replies)
Discussion started by: Chor419
6 Replies

7. Shell Programming and Scripting

Getting file Details with find -mmin

I'm new to this and I have done a lot of research and am 99% done with my ksh script BUT I need help with. The script looks at Journal files and reports back on any that have not been updated for 15 min. Everything works but I wanted more detail (added -ls) and now I'm getting dups. Original code:... (2 Replies)
Discussion started by: blackopz
2 Replies

8. Emergency UNIX and Linux Support

Getting details from sudoers file

Hi, I need the details of which ids belong to the sudoers file, and which groups these ids belong to. Can anyone suggest a way to derive that information into a flat file please? G (4 Replies)
Discussion started by: ggayathri
4 Replies

9. Shell Programming and Scripting

Extract sentence and its details from a text file based on another file of sentences

Hi I have two text files. The first file is TEXTFILEONE.txt as given below: <Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text> <Text Text_ID="10155645315851111_10155645317023456"... (7 Replies)
Discussion started by: my_Perl
7 Replies

10. Shell Programming and Scripting

Need to extract jil file details in a excelsheet

I am very new to shell scripting. I have a autosys jil file that looks like :-- /* ------------- JOB1 ------------------ */ insert_job: JOB1 job_type: b owner: cm@pelonmuck permission: gx,ge,wx,we,mx,me date_conditions: 1 days_of_week: mo,tu,we,th,fr,su start_time: "18:30"... (9 Replies)
Discussion started by: newbie_shell
9 Replies
uuid(1m)																  uuid(1m)

NAME
uuid - A dcecp object that generates and compares UUIDs SYNOPSIS
uuid compare uuid uuid uuid create uuid help [operation | -verbose] uuid operations ARGUMENTS
A UUID in the following form: C069d9fb6-943e-11cd-a35c-0000c08adf56 The name of the uuid operation for which to display help information. DESCRIPTION
The uuid object generates and compares Universal Unique Identifiers (UUIDs). UUIDs uniquely identify DCE entities such as principals, RPC entries, Cell Directory Service (CDS) replicas, and so on. OPERATIONS
uuid compare Compares two UUIDs. The syntax is as follows: uuid compare uuid uuid The compare operation compares two UUIDs, returning 1 if they are equal or 0 if they are not. Because the uuid compare command handles the comparison of UUIDs in current and previous DCE formats, you should use it rather than string compare. Privileges Required No special privileges are needed to use the uuid compare command. Examples dcecp> uuid compare 03bb2688-943e-11cd-8bfd-0000c08adf56 > 069d9fb6-943e-11cd-a35c-0000c08adf56 0 dcecp> uuid create Returns a newly generated UUID. The syntax is as follows: uuid create The create operation returns a newly generated UUID. It takes no arguments. Privileges Required No special privileges are needed to use the uuid create command. Examples dcecp> uuid create 03bb2688-943e-11cd-8bfd-0000c08adf56 dcecp> uuid help Returns help information about the uuid object and its operations. The syntax is as follows: uuid help [operation | -verbose] Options Displays information about the uuid object. Used without an argument or option, the uuid help command returns brief information about each uuid operation. The optional operation argument is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option for more detailed information about the uuid object itself. Privileges Required No special privileges are needed to use the uuid help command. Examples dcecp> uuid help compare Compares two UUIDs for equality. create Returns a newly generated UUID. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> uuid operations Returns a list of the operations supported by the uuid object. The syntax is as follows: uuid operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the uuid operations command. Examples dcecp> uuid operations compare create help operations dcecp> RELATED INFORMATION
Commands: dcecp(1m). uuid(1m)
All times are GMT -4. The time now is 05:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy