08-29-2002
dude, that failed to aid me in my answer. c'mon it's one line, someone must know.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
File 1
<html>ta da....unique file name I want to give file=>343...</html>
<html>da ta 234 </html>
<html>pa da 542 </html>
and so on...
File 2
343
234
542
and so on, each line in File 1 one also corresponds with each line in File 2
I have tried several grep, sed, while .. read, do,... (4 Replies)
Discussion started by: web_developer
4 Replies
2. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
3. Shell Programming and Scripting
FIle A
"A" 2 aa 34
3 ac
5 cd
"B" 3 hu 67
4 fg
5 gy
output shud be
A"" 2 aa 34
"A" 3 ac 34
"A" 5 cd 34
"B" 3 hu 67
"B" 4 fg 67
"B" 5 gy 67 (6 Replies)
Discussion started by: cdfd123
6 Replies
4. Solaris
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies
5. Shell Programming and Scripting
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Discussion started by: mjavalkar
4 Replies
6. Shell Programming and Scripting
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
3 Replies
7. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
8. Shell Programming and Scripting
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Discussion started by: pat_pramod
3 Replies
9. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
PROF(1) General Commands Manual PROF(1)
NAME
prof - display profile data
SYNOPSIS
prof [ -a ] [ -l ] [ -n ] [ -z ] [ -s ] [ -v [ -low [ -high ] ] ] [ a.out [ mon.out ... ] ]
DESCRIPTION
Prof interprets the file produced by the monitor subroutine. Under default modes, the symbol table in the named object file (a.out
default) is read and correlated with the profile file (mon.out default). For each external symbol, the percentage of time spent executing
between that symbol and the next is printed (in decreasing order), together with the number of times that routine was called and the number
of milliseconds per call. If more than one profile file is specified, the output represents the sum of the profiles.
In order for the number of calls to a routine to be tallied, the -p option of cc, f77 or pc must have been given when the file containing
the routine was compiled. This option also arranges for the profile file to be produced automatically.
Options are:
-a all symbols are reported rather than just external symbols.
-l the output is sorted by symbol value.
-n the output is sorted by number of calls
-s a summary profile file is produced in mon.sum. This is really only useful when more than one profile file is specified.
-v all printing is suppressed and a graphic version of the profile is produced on the standard output for display by the plot(1) fil-
ters. When plotting, the numbers low and high, by default 0 and 100, may be given to cause a selected percentage of the profile to
be plotted with accordingly higher resolution.
-z routines which have zero usage (as indicated by call counts and accumulated time) are nevertheless printed in the output.
FILES
mon.out for profile
a.out for namelist
mon.sum for summary profile
SEE ALSO
monitor(3), profil(2), cc(1), plot(1G)
BUGS
Beware of quantization errors.
Is confused by f77 which puts the entry points at the bottom of subroutines and functions.
4th Berkeley Distribution April 29, 1985 PROF(1)