Many ways to do this... But it is a bit tricky.
You'll need to change the filename (uuid-file) to the one you want (or empty for stdin). Then just do "find_uuid /dev/sdc" from the shell.
The trick is in realizing that awk is a series of pattern-script pairs, not just one. The first one is used to remember the most-recently seen uuid. The second prints it out when the device name matches.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
fs_uuid
FS_UUID(1) AFS Command Reference FS_UUID(1)NAME
fs_uuid - Prints the uuid of the client or generates a new one
SYNOPSIS
fs uuid [-generate] [-help]
DESCRIPTION
fs uuid prints the current UUID of an OpenAFS client. It can optionally force the generation of a new UUID, if needed. The client UUID is
used by the fileserver to differentiate clients with the same IP address.
CAUTIONS
The fs uuid command is only available in OpenAFS versions after 1.4.5 and 1.5.8. The behavior differs slightly between versions. In
OpenAFS 1.4.5 and later, the -generate option is required and the UUID for the client machine is never printed. OpenAFS versions 1.5.8 and
later will print the UUID.
OPTIONS -generate
Generates a new UUID for the cache manager. This is useful if two clients share the same UUID (if systems were cloned incorrectly, for
example). -generate is optional in OpenAFS versions 1.5.8 and later, but it is required in OpenAFS versions 1.4.5 and later.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
fs uuid prints out the current UUID for the client or the new UUID if the -generate option is passed to it.
EXAMPLES
There are only two ways to invoke fs uuid under 1.5.8 and later:
% fs uuid
UUID: 8ac66f9308a8e-47d7-80f7-50d0040cddc2
% fs uuid -generate
New UUID: 436bd660-1720-429508e470cff38f5c6fb0
Here is the only way to invoke fs uuid under OpenAFS 1.4.5 and later:
% fs uuid -generate
New uuid generated.
PRIVILEGE REQUIRED
The issuer must be logged on as the local superuser "root".
SEE ALSO fs(1)COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_UUID(1)