I don't get that kind of output with ls -l but assuming you do, the following ought to work.
Requesting ls to sort the output is unnecessary, if you require chronological output order, some additional tricks will be needed. The array loop in awk for (x in y) traverses the keys of y in unpredictable order.
Also the sample output you posted doesn't seem to agree with the input. I get the following
Did I misunderstand your requirement, or is the sample output wrong? Looks like you accidentally summed Mar and May into the same category.
I am trying to write a script that will parse out the e-mail address of a person from the name of a file in a directory.
Example:
filename is:
/home/myname/first.middle.last@email.com.xls
I want to extract just the email address and mail the file to that address.
I want to send the... (6 Replies)
How do I alter this command so that it prints only the second comma delimited field from line number 3? Secondly, how do you redirect the output to a variable called TEST?
Thanks
(cat BATCH007.TXT | awk 'BEGIN { FS = "," } ; {print $2 }') (5 Replies)
Hi ,
i have a file a.txt like this:
far
near
veryfar
toonear
typeset var1=veryfar
to extract the text between two strings i use the following command :
awk '/far/,$veryfar/' a.txt
its not working
can nyone tell pls whats wrong in it ?
i doubt can we use variable in awk like this... (3 Replies)
I have a log file monitor script that checks through a log file for a string. I use awk to search the log file, starting at the last checked line, for the specified string and then output the count and the last row number checked. The part of the script that does all the work is here:
set --... (6 Replies)
hi,
I have input file woth records as shown below
OCSMRC_OK,7057348733,+0.00,0,18/05/2010 23:42:19,BellMobility,302610000918553,0006056099,B30,686505,686505,OCS_MRC,+49.14,0,0
,0,0,
OCSPPKB_NOK,4163460120,+1.25,0,18/05/2010... (4 Replies)
Dear all,
I am new to use unix. I run the following command and got the error. Anyone knows how should I modify the command. Thanks a lot!
$
for chr in 'seq 1 23';
do
awk 'BEGIN {print "T","pheno";}{print "M",$2}' out_${chr}.map > dat_${chr}.dat;
done
error message:... (2 Replies)
Hi Experts,
I have a file (file 1) with several columns and I need to create 2 files based on the data of 20th column of file 1.
Criteria 1 : If the 20th field of file1 is empty , copy the entire records to file 2.
I am successfully able to do this with the following awk code :
awk... (2 Replies)
Hi..
have a file as below, appreciate if someone can help on this
143|500| 10| 23353 22131 23355 23354 23358 23352 23357 23350 23349 23351| RAID5
213|1008| 9| 22419 22412 221 22413 22414 22416 22417 22415 22418| RAID6
1088|500| 5| 22243 22240 22244 22242 22241| RAID5
322|1200| 12|... (6 Replies)
Discussion started by: richard0@rediff
6 Replies
LEARN ABOUT DEBIAN
tau2otf
TAU2OTF(1) Tools TAU2OTF(1)NAME
tau2otf - convert TAU tracefiles to OTF tracefiles for Vampir/VNG
SYNOPSIS
tau2otf [-n streams] [-nomessage] [-v]
DESCRIPTION
This program is generated when TAU is configured with the -otf=<otf_dir> option. The tau2otf trace converter takes a TAU formatted
tracefile (*.trc) and a TAU event description file (*.edf) and produces an output trace file in the Open Trace Format (OTF). The user may
specify the number of output streams for OTF. The input files and output file must be specified in that order. TAU traces should be merged
using tau_merge prior to conversion.
OPTIONS -n streams Specifies the number of output streams (default is 1). -nomessage Suppresses printing of message information in the trace. -v
Verbose mode sends trace event descriptions to the standard output as they are converted.
EXAMPLES
The program must be run with the tau trace, tau event and otf output files specified in the command line in that order. Any additional
arguments follow. The following will produced an OTF file, a pp.otf and other related event and definition files, from the TAU trace and
event files merged.trc and tau.edf trace file:
tau2otf merged.trc tau.edf app.otf
SEE ALSO tau2vtf(1), tau2profile(1), vtf2profile(1), tau_merge(1), tau_convert(1)
12/22/2005 TAU2OTF(1)