I saw a couple of posts here referencing how to handle more than one input field separator in awk. I figured I would share how I (just!) figured out how to turn this line in a logfile:
90000000000000000000010001 name... (4 Replies)
Hi,
I needs to split *.txt files from single directory depends on the some mutltiple input values. i have wrote the code like below
for file in *.txt
do
grep -i -h "value1|value2" $file > $file;
done.
My requirment is more input values needs to be given in grep; let us say 50... (3 Replies)
Hello gurus,
I am new to "awk" and trying to break a large file having 4 million records into several output files each having half million but at the same time I want to keep the similar key records in the same output file, not to exist accross the files.
e.g. my data is like:
Row_Num,... (6 Replies)
Hi all.
I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value.
cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile
This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Hi Experts,
I am new to shell scripting. Need some help in doing one task given by the customer.
The sample record in a file is as follows:
3538,,,,,,ID,ID1,,,,,,,,,,,
It needs to be the following:
3538,,353800,353800,,,ID,ID1,,,,,COLX,,,,,COLY,
And i want to modify this record in... (3 Replies)
I need to make one record to multiple records based on occurence column in the record and change the date.For example below first record has 5 ,so need to create 5 records from one and change the date to 5 months.Occurence can be any number.
I am unable to come with a script.Can some one help
... (5 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Hi Friends,
Below is my input file with "|" (pipe) as filed delimiter:
My Input File:
HDR|F1|F2||||F6|F7
I want to inser values in the record for field 4 and field 5.
Expected output
HDR|F1|F2||F4|F5|F6|F7
I am able to append the string to the end of the record, but not in between the... (3 Replies)
My program run without error. The problem I am having.
The program isn't outputting field values with the column headers to file.txt.
Each of the column headers in file.txt has no data.
MEMSIZE SECOND SASFoundation Filename
The output results in file.txt should show:
... (1 Reply)
Hello I have a file of following format
HDR 1234 abc qwerty
abc def ghi jkl
HDR 4567 xyz qwerty
abc def ghi jkl
HDR 890 mno qwerty
abc def ghi jkl
HDR 1234 abc qwerty
abc def ghi jkl
HDR 1234 abc qwerty
abc def ghi jkl
-Need to split this into multiple files based on tag... (8 Replies)
Discussion started by: wincrazy
8 Replies
LEARN ABOUT HPUX
show_clearinghouse
show clearinghouse(1m) show clearinghouse(1m)NAME
show clearinghouse - Displays attribute information about the specified clearinghouse
SYNOPSIS
cdscp show clearinghouse clearinghouse-name [attribute-name]
[with attribute-name = attribute-value]
ARGUMENTS
The full name of a specific clearinghouse. The last simple name can contain wildcard characters. The name of a particular attribute; see
Description for valid attribute names. The value of a particular attribute.
DESCRIPTION
The show clearinghouse command displays the names and values of the attributes specified in attribute-name. You can use a combination of
attributes in any sequence in a single command. Use a space to separate multiple attributes. You can use a with attribute-name =
attribute-value clause to limit output only to clearinghouses whose attributes have values equal to the specified values. A space must
precede and follow the = (equals sign).
If you do not supply any attributes, the command displays all attributes and their values. The following list describes the clearinghouse
attributes: Indicates the date and time the clearinghouse object has been updated to reflect the CDS_CHDirectories attribute. Specifies
the full name and unique identifier (UUID) of every directory that has a replica in this clearinghouse. Specifies the current reported
network address of the clearinghouse. Specifies the full name of the clearinghouse. Specifies the state of the clearinghouse. The state
on indicates the clearinghouse is running and available. Specifies the name of the cell in which the clearinghouse resides. Specifies the
creation timestamp (CTS) of the clearinghouse. Specifies the directory version for new directories that are created in the clearinghouse.
Specifies the unique identifier of the clearinghouse. Specifies the current version of the replica in which the directory was created.
Specifies the timestamp of the most recent update to an attribute of the clearinghouse.
The following counters and their values are displayed only when you use this command to display all attributes and their values: Specifies
the number of times that the data corruption event was generated Specifies the number of times that the clearinghouse was enabled since it
was last started Specifies the number of read operations directed to this clearinghouse Specifies the number of requests directed to this
clearinghouse that resulted in the return of a partial answer instead of satisfying the client's request Specifies the number of times that
a skulk of a directory, initiated from this clearinghouse, failed to complete-- usually because one of the replicas in the replica set was
unreachable Specifies the number of times the clearinghouse entry missing event was generated Specifies the number of times the root lost
event was generated Specifies the number of times that upgrades failed Specifies the number of write operations directed to this clearing-
house Specifies the number of times that the clearinghouse was disabled since it wsa last started
Privilege Required
You must have read permission to the clearinghouse. If you specify a wildcard clearinghouse name, you also need read permission to the
cell root directory.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command displays the current values of the CDS_UTS and CDS_ObjectUUID attributes associated with the /.:/Chicago1_CH clear-
inghouse: cdscp> show clearinghouse /.:/Chicago1_CH CDS_UTS CDS-ObjectUUID
SHOW
CLEARINGHOUSE /.../abc.com/Chicago1_CH
AT 1991-10-21-13:12:30
CDS_UTS = 1991-10-21-13:04:04.000000009/08-00-2b-1c-8f-1f
CDS_ObjectUUID = 3706d70c-8b05-11ca-9002-08002b1c8f1f
RELATED INFORMATION
Commands: clear clearinghouse(1m), create clearinghouse(1m), delete clearinghouse(1m), list clearinghouse(1m), set cdscp preferred clear-
inghouse(1m), show cdscp preferred clearinghouse(1m)
show clearinghouse(1m)