I tried to execute ./configure, make and make install separately. First two commands executed well, but make install has given me some error given below
Also, I tried to execute the following code to get the version
Quote:
Code:
sed --version | head -n 1
error is given below
Quote:
sed -e '/.*<'$r'>.*/{x;p;x}' -e '/<\/'$r'>/G'
It is still giving me garbled error.
Quote:
sed -e '/.*<'$r'>.*/{x p x }' -e '/<\/'$r'>/G' file
It is giving some incorrect lines from log file.
I put the perl script in some file called lastResponse.pl and executed like perl lastResponse.pl inputfile
It worked greatand got my last occurred response for my user in two minutes. Thank You Mirni for your continuous support.
Well I am also very happy you got what you wanted. Ufff....
Just for the record, the error you were getting with 'make install' was
You need to elevate to root's privileges to install system wide. If you used --prefix=/mydir with ./configure, you could install it into your directory. But 'make' has finished building so should have gawk binary present in the gawk-3.1.8 directory. Instead of the clumsy perl script, you can use gawk oneliner posted earlier in this thread. Something like this:
Your perl script was working so I thought I should finish my pending work with that only. Today I got some time to see how gawk command is working.
You are awesome. It worked well.
Thank You So much.
My best wishes to you.
unix.com should give us an option to post questions directly to someone they are confident on.... If so, I would shoot all my questions on unix to you ..
unix.com should give us an option to post questions directly to someone they are confident on.... If so, I would shoot all my questions on unix to you ..
This is a public forum, which has a good reason -- it helps people find their solution, when they google it up, and the more people have access to it, the better chances for fast and accurate response. Asking questions directly through private messages is against the rules of the forum, and for a good reason.
I am no guru; there are much more competent people here, which gives me and others an opportunity to improve our skills. The power is in the community, community is the keyword when dealing with open-source software.
Hi, i have file file.txt with data like:
START
03:11:30 a
03:11:40 b
END
START
03:13:30 eee
03:13:35 fff
END
jjjjjjjjjjjjjjjjjjjjj
START
03:14:30 eee
03:15:30 fff
END
ggggggggggg
iiiiiiiiiiiiiiiiiiiiiiiii
I want the below output
START (13 Replies)
Hi all,
I have an input file as below. I would like to count the occurrence of pattern matching 8th field for each line.
Input:
field_01 field_02 field_03 field_04 field_05 field_06 field_07 field_08
TA T TA T TA TA TA... (3 Replies)
Assume a string that contains one or multiple occurrences of three different keywords (abbreviated as "kw"). I would like to replace kw2 with some other string, say "qux". Specifically, I would like to replace that occurrence of kw2 that is the first one that is preceded by kw1 somewhere in the... (4 Replies)
HPUX /bin/sh (posix)
I have a file as such
cat dog mouse
deer elk rabbit
mouse rat pig
I would like to replace the second occurrence of mouse in this file with mouse2. The rest of the file has to stay exactly as is. I'm not sure exactly where mouse might be (could be first,second,third... (5 Replies)