01-15-2009
Ygor:
Thanks for response. It did work. Would you please tell me how it all came together? Especially at \....000\)000/\1. Please let me know this would give us in what we need. Thanks ahead for the help. It really helped me.
sed 's/\(|....-..-.. ..:..:..\....000\)000/\1/g' file1
10 More Discussions You Might Find Interesting
1. Solaris
Can anyone help me find and replace blank rows in a file with a numeric value (ie blankrow=someTxtOrNumValue), the file is over 500,000 rows long so it would need to be the quickest way as I'll need to do this for multiple files...I would be greatfull for any suggestions....thanks
sample file:... (2 Replies)
Discussion started by: Gerry405
2 Replies
2. Shell Programming and Scripting
Hi All,
Could anyone help me out in the below requirement:
I have a text(XML) file like this:
- <Dim2>
<Properties Name="" State="2" ShowHir="-1" ApplyFilter="-1" ExpandToLevel="1" BreakHierType="1" MaxDepth="1" SlicerSelectOptions="1" ShowLeaf="0" HasGroup="0" />
<Expanded... (1 Reply)
Discussion started by: vivekshady
1 Replies
3. Shell Programming and Scripting
Hi everyone.
Could u be so kind and help me with on "simple" shell script?
1. i need to search a file line by line for a pattern.
example of a lines in that file
2947 domain = feD,id = 00 0A 02 48 17 1E 1D 39 DE 00 0E 00,Name
Values:snNo = f10
Add AttFlag = 0
2. i need to find... (0 Replies)
Discussion started by: dusoo
0 Replies
4. Shell Programming and Scripting
#cat BATCH007.TXT
01,661060052,061000104,081118,0915,07,80,1,2/
99,,,2/
I have this file called BATCH007.TXT. I am trying to change fields 2 and 3 on line 2 to have zeroes. Like this:
01,661060052,061000104,081118,0915,07,80,1,2/
99,0,0,2/
I can use these commands to print identify the... (2 Replies)
Discussion started by: ddurden7
2 Replies
5. Shell Programming and Scripting
Hi!
I have a file somefile.txt:
12, 1, a, b, c, d, e, f
12, 1, a, b, c, d, e, f
17, 51, a, b, c, d, e, f
...
I've made this script to read two fields from a line and output a third:
cat somefile.txt | awk -F, '{if ($1 == "12" && $2== "1")
print "19";
else if ($1 == "17" && $2== "51")... (8 Replies)
Discussion started by: Tr0cken
8 Replies
6. Shell Programming and Scripting
Hi all,
say for example i have the next input file
30
Au 7.500000 7.500000 5.774000
Au 7.500000 8.995000 8.363000
Au 7.500000 6.005000 8.363000
Au 20.633000 7.500000 9.226000
Au 20.632000 6.005000 6.637000
Au 20.632000 ... (4 Replies)
Discussion started by: ezitoc
4 Replies
7. Shell Programming and Scripting
Hello;
I have the output data set from:
egrep -i 'warning| error| fail' /var/adm/syslog/syslog.log
Jan 31 12:02:18 fidsrv vmunix: LVM: WARNING: VG 128 0x001000: LV 5: Some I/O requests to this LV are waiting
Jan 31 12:02:23 fidsrv vmunix: Asynchronous write failed on LUN (dev=0x100000f)... (3 Replies)
Discussion started by: delphys
3 Replies
8. Shell Programming and Scripting
Hallo Everyone.
I have to admit I'm shell scripting illiterate . I need to find certain strings in several text files and replace each of the string by unique & corresponding text.
I prepared a csv file with 3 columns: <filename>;<old_pattern>;<new_pattern>
... (5 Replies)
Discussion started by: gordom
5 Replies
9. Shell Programming and Scripting
Hallo Team,
I would like to replace filed 4 and 7 with filed 39 how can i achieve this ?
-bash-3.2$ cat dip1.csv| cut -f4,7,24,36,39 -d","|sort -u
+27113996891,+27113996891,196.35.130.52,828854047,+27873500077
+27116452690,+27825702918,10.0.109.13:5060,+27116452690,+27116452690... (2 Replies)
Discussion started by: kekanap
2 Replies
10. Shell Programming and Scripting
Greetings.
I've got a csv file with data along these lines:
Spumoni's Pizza Place, Placemats n Things, Just Lamps
Counterfeit Dollars by Vinnie, Just Shades, Dollar StoreI want to replace the entire comma-delimited field if it matches something ending in "Place" or beginning with "Dollar",... (2 Replies)
Discussion started by: palmfrond
2 Replies
LEARN ABOUT HPUX
vxmemstat
vxmemstat(1M) vxmemstat(1M)
NAME
vxmemstat - display memory statistics for Veritas Volume Manager
SYNOPSIS
vxmemstat [-e] [-i interval [-t count]]
DESCRIPTION
The vxmemstat utility prints memory statistics information. This information can be system-wide, or it can be specific to a Veritas Volume
Replicator object.
OPTIONS
-e Prints extended memory statistics.
-i interval
Prints memory statistics every interval seconds.
-t count Prints the local system time every count intervals. The time interval is specified using the -i interval option.
OUTPUT FORMAT
The statistics are prefaced by a timestamp showing the current local time on the system. Statistics are printed as a one-line output record
for each memory pool. The records are preceded by two header lines. The output line consists of blank-separated fields. All numeric fields
are in units of kilobytes.
The following fields are displayed on each line:
Pool Name of the memory pool. Memory consumers allocate memory from different pools for different purposes.
DG Name of the disk group in which the RVG is present.
Min Size Minimum amount of memory always reserved for use by consumers of the pool. As consumers require more memory, additional memory is
allocated to the pool for distribution to them.
Max Size Maximum amount of memory that can be allocated to the pool. This is equal to the value assigned to the maximum pool size system
tunable that corresponds to the pool.
In Use Amount of memory (out of that allocated) currently being used by consumers of the memory pool.
Allocated Amount of memory currently allocated to the memory pool. The amount of memory allocated to a pool ranges between the minimum and
the maximum pool size. The amount of allocated memory increases as more memory is needed and decreases as it is relinquished.
Max Used Maximum amount of memory used by consumers from this pool since system startup.
This field is not shown if the -e option is specified.
Max Pool Used
Maximum amount of memory used by consumers from this pool at any time since the last reboot. The value shows the maximum usage
even if usage by the pool has varied over this time period.
This field is shown if the -e option is specified.
Waiting Indicates if any I/O is waiting to allocate memory from this pool. This usually indicates that the corresponding tunable for the
maximum size of this pool needs to be increased.
This field is not shown if the -e option is specified.
Waiters The number of requests that are waiting to allocate memory from this pool.
This field is shown if the -e option is specified.
EXIT CODES
The vxmemstat utility exits with a non-zero status if the attempted operation fails. A non-zero exit code is not a complete indicator of
the problems encountered, but rather denotes the first condition that prevented further execution of the utility.
See vxintro(1M) for a list of standard exit codes.
EXAMPLES
To display statistics every 5 seconds and time stamp the output every alternate interval, use the command:
vxmemstat -i 5 -t 2
SEE ALSO
vxintro(1M), vxstat(1M)
VxVM 5.0.31.1 24 Mar 2008 vxmemstat(1M)