Hi
I am trying to use this command:
egrep '^a{2,6}$' testexpr4D
to retreive lines with 2,3,4,5, or 6 a's in a file .
The file testexpr4D has entries like:
a
aa
aaa
aaaa
aaaaa
aaaaaa
123456
ABCDEF
I was expecting to see 5 lines in the output but nothing happens.
Can anyone help... (10 Replies)
Hi,
Can someone help me count this line:
Say I have a file (file1.txt) that contains below:
11/16 13:08:19.5436 18096 --- Generating a <reading> event
11/16 13:08:19.7784 18096 ---- Sending a <writing> event
11/16 13:08:37.4516 18096 --- Generating a <reading> event
11/16... (1 Reply)
I have a script that does the following. It searches a listing of directories with specific extensions and then formats a wc on those files. The code looks like this
find <directory> -name '*.js' -o -name '*.html' | awk '{print \"wc -l \"$1}' > file \n"
The result is a file with the "wc -l"... (7 Replies)
I want to egrep for certain fields which are not existing in the current log files and am getting errors for that...
egrep "'^20090220.14'|'^20090220.15'|'^20090220.16'|'^20090220.17'|'^20090220.18'"
Some of the times are in future and logs don't have those entries and I get errors for them... (1 Reply)
Hello all,
I'm a first time poster and a unix/linux noob so please be understanding.
I am trying this command below:
# egrep -c "Oct".+"Connect: ppp" /var/log/messages*
/var/log/messages:53
/var/log/messages.1:35
/var/log/messages.2:63
/var/log/messages.3:27
/var/log/messages.4:12
... (1 Reply)
Hi, i have a a bunch of directories that are always named with six lowercase alpha's and either one or two numeric's (but no more)
so for example names could be
qwerty1
qwerty9
qwerty10
qwerty67
I am currently using two pattern matches to capture these names
echo $DIR |... (8 Replies)
test.txt:
appleboy
orangeletter
sweetdeal
catracer
conducivelot
I want to only grep out lines that contain "appleboy" AND "sweetdeal". however, the closest thing to this that i can think of is this:
cat test.txt | egrep "appleboy|sweetdeal"
problem is this only searches for all... (9 Replies)
Hi all
I need your help to get a high-performance solution.
I am working on a extensive script to automate file restores using the bprestore tool on a Solaris 5.10 server (bash 3.00). I will only paste the needed parts of the script to avoid any confusion.
To use the script the user has to... (2 Replies)
Its really 2 questions, but both are pretty basic.
Linux Redhat
1. Need to do a search and replace on a file.
I need to append '--' (comment out the line) to specific lines based on a wildcard search.
So if I Have
GRANT SOME_ROLE_OR_USER ...
I dont care what comes after that.... (2 Replies)
Hi
I have a txt file and I would like to use egrep without using -v option to exclude the lines which matches with multiple Strings.
Let's say I have some text in the txt file. The command should not fetch lines if they have strings something like
CAT MAT DAT
The command should fetch me... (4 Replies)
Discussion started by: Sathwik
4 Replies
LEARN ABOUT DEBIAN
tau2profile
TAU2PROFILE(1) Tools TAU2PROFILE(1)NAME
tau2profile - convert TAU tracefiles to TAU profile files
SYNOPSIS
tau2vprofile [-d directory] [-s snapshot_interval] {tau_tracefile} {tau_eventfile}
DESCRIPTION
This program is generated when TAU is configured with the -TRACE option.
The tau2profile converter takes a single tau_tracefile (*.trc) and tau_eventfile (*.edf) and produces a corresponding series of profile
files. The input files must be specified in that order, with optinal parameters coming afterward. Multi-file TAU traces must be merged
before conversion.
OPTIONS -d Output profile files to the specified 'directory' rather than the current directory.
-s Output a profile snapshot showing the state of the profile data accumulated from the trace every 'snapshot_interval' time units. The
snapshot profiles are placed sequentially in directories labled 'snapshot_n' where 'n' is an integer ranging from 0 to to the total number
of snapshots -1.
EXAMPLES
The program must be run with the tau trace and tau event files specified in the command line in that order. Any additional arguments
follow. The following will produce a profile file array, from the TAU trace and event files merged.trc and tau.edf trace file:
tau2profile merged.trc tau.edf
The following will convert merged.trc and tau.edf to a series of profiles one directory higher. It will also produce a profile snapshot
every 250,000 time units:
tau2profile merged.trc tau.edf -d ./.. -s 250000
SEE ALSO vtf2profile(1), tau2vtf(1), tau2otf(1), tau_merge(1), tau_convert(1)
12/22/2005 TAU2PROFILE(1)