Search Results

Search: Posts Made By: usha rao
1,232
Posted By usha rao
Thanks a lot Balajesuri and Agn. This is...
Thanks a lot Balajesuri and Agn.
This is exactly what I need and made my work simpler.
Thanks you very much, I really appreciate this.

---------- Post updated at 04:34 AM ---------- Previous...
1,232
Posted By usha rao
Replace first field of a line with previous filed of the line
Hi Everyone,

I have a file as below:


IM2345638,sherfvf,usha,30
IM384940374,deiufbd,usha,30
IM323763822,cdejdkdnbds,theju,15
0,dhejdncbfd,us,20
IM398202038,dhekjdkdld,tj,30...
2,161
Posted By usha rao
Thanks Ranga.. Its perfect... Cheers, Usha
Thanks Ranga.. Its perfect...

Cheers,
Usha
2,161
Posted By usha rao
Sed or awk : pattern selection based on special characters
Hello All,

I am here again scratching my head on pattern selection with special characters.


I have a large file having around 200 entries and i have to select a single line based on a...
2,911
Posted By usha rao
Hi, I have included the commands in a script...
Hi,

I have included the commands in a script and now i am trying to run it through a cron job.

but the cronjob is not getting executed.

nawk -F"|" '{ if ( $6!= "" ) { print $1 | "xargs" } }...
2,911
Posted By usha rao
Thanks a lot Jayan... :b: I tried with...
Thanks a lot Jayan... :b:
I tried with different input files and this is perfect!!
I have a long way to match the expertise.. :)

Cheers,
Usha
2,911
Posted By usha rao
Thanks Jayan for your reply. I am still a...
Thanks Jayan for your reply.

I am still a learner in nawk. Could you please explain these two nawk commands.

Thanks again,
Usha
2,911
Posted By usha rao
Hi jayan, This works only if i have one...
Hi jayan,

This works only if i have one repeating entry in column 1.
Although it prints the rows where first column is repeating which is having sixth column as NON empty.
But its not printing...
2,911
Posted By usha rao
Nawk script to compare records of a file based on a particular column.
Hi Gurus,

I am struggling with nawk command where i am processing a file based on columns.

Here is the sample data file.


UM113570248|24-AUG-11|4|man1|RR211 Alert: Master Process...
18,865
Posted By usha rao
Thanks Yuzu & Franklin for simplified solution. ...
Thanks Yuzu & Franklin for simplified solution.

Hi Panyam,

On Solaris nawk does such type of complex operation. awk gives below error.Hence i was searching for other options.

Thanks for...
18,865
Posted By usha rao
Hi Panyam, Thanks for the reply. The...
Hi Panyam,

Thanks for the reply.
The given awk solution perfectly works when i am using nawk in my solaris system.

But i am writing a generic script that should be common for all solaris ,...
18,865
Posted By usha rao
Thanks for the reply getmmg. But I need the...
Thanks for the reply getmmg.

But I need the lines containg the pattern also to be printed.

sample output from your example:


one
two
three
four
two
one



Also, i do not have...
18,865
Posted By usha rao
Select everything between first and last occurrence of same pattern
Greetings,

I am writing a script which requires as a part, selecting all the lines between the first and last occurrence of a pattern.

I have an nawk alternative that is working. But thre...
2,121
Posted By usha rao
you can try this... sed -e 's/^[...
you can try this...


sed -e 's/^[ ]*//g' -e 's/\([0-9a-zA-Z\.]*\) */\1,/g' inputfile


Regards,
Usha
2,159
Posted By usha rao
How much have you tried?? Did you create a...
How much have you tried??
Did you create a script already?

regards,
Usha
1,257
Posted By usha rao
you can try this also.. Regards, ...
you can try this also..



Regards,
Usha
6,329
Posted By usha rao
Hi Devraj and Alister, Thanks a lot to both of...
Hi Devraj and Alister,
Thanks a lot to both of you.
The solution
find /logs \( -path /logs/wu01/tmpbuild -prune \) -o \( -type f -size +1000k \)
Worked for me..
Cheers
Usha
6,329
Posted By usha rao
-prune: If -depth is not given, true; do not...
-prune: If -depth is not given, true; do not descend the current direc-
tory.
If -depth is given, false; no effect.

Hi Devtakh,
Thanks for replying.
But Could you please explain that.
Is...
6,329
Posted By usha rao
Find files of specific size excluding search in a subdirectory
Hi All,
I was exploring find command and came across -prune option which would exclude search in a mention subdirectory.
My quesry is to search all files more that 100 MB size but exclude search in...
4,961
Posted By usha rao
Hi Balu, Please find below my script through...
Hi Balu,
Please find below my script through which i am sending mail,the mail is getting triggered but i am not receiving mails.

cd /logs/acctracf/
size1=`cat acctracf_dev.txt| wc -l`...
4,961
Posted By usha rao
mailx not working
Hi All,
I am strugging with mailx.
I have a shell script which triggers mail when executed.
I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am...
2,897
Posted By usha rao
Parameters to check while differentiating two servers
Hi All,
I have two solaris servers.
Please tell me what all parameters i can check to find out the difference between two servers.
how to differentiate based on H/W,S/W etc
like i have two...
4,967
Posted By usha rao
Hey Franklin, Thanks for your reply... Can...
Hey Franklin,
Thanks for your reply...
Can you suggest some bokk for a beginner like me where i can learn more tricks and things that can be done with awk,sed,nawk etc??
4,967
Posted By usha rao
Hi Franklin. In the code above which you...
Hi Franklin.

In the code above which you have given will it be possible to pass a variable instead of the value that is being passed a a regex??
4,967
Posted By usha rao
Hi Devtakh, Thanks for your reply. But are...
Hi Devtakh,

Thanks for your reply.
But are you sure this solution works???

because when i have used this code

cat websphere_stdout.txt |sed -n "/`cat /tmp/thrd_id | head -2 | tail...
Showing results 1 to 25 of 89

 
All times are GMT -4. The time now is 12:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy