Search Results

Search: Posts Made By: sudvishw
5,033
Posted By sudvishw
HTML mail with Attachment
Hi,
I am using the below code:

#!/bin/ksh
SUBJ="Send mail from Unix with file attachments"
TO=sudha.viswanathan@jpmorgan.com
CC=sudha.viswanathan@jpmorgan.com
(
cat << !
To : ${TO}...
1,602
Posted By sudvishw
Thanks a lot for all your replies. Now it works...
Thanks a lot for all your replies. Now it works fine :)
1,602
Posted By sudvishw
Problem using variable inside awk
HI,
This is the code I am using:

awk -v aaa="connect" 'BEGIN {IGNORECASE} /aaa/,/!/ {print NR}' bb

This does not throw any error but it does not work. Pls help

Thanks.
11,945
Posted By sudvishw
Sort by absolute value
Hi,
I have a file as follows:

|-30.0|Appls. executing in db manager currently = 2
|-80.0|Locks held currently = 1
| 90.0|High water mark (bytes) =...
2,609
Posted By sudvishw
The pattern used in awk has brackets!
Hi,
One of the pattern that I use in awk, comes with round brackets; hence awk is not working correctly.

The pattern I am using is 'High water mark (bytes)'. As this pattern has 'bytes' enclosed...
6,528
Posted By sudvishw
Named pipe performance
Hi,
I am getting data into a Named pipe. Does Named pipe have any size restriction; I know it does not have any storage and it just passes on the data to the next process.

I want to know, if...
8,725
Posted By sudvishw
Thanks a lot. Now I understood how the named...
Thanks a lot. Now I understood how the named pipe works.
8,725
Posted By sudvishw
Using Named pipe in shell script
Hi,
I want to use a Named pipe to get input from a growing file for further processing. When I prototype this scenario using a while loop, the data is not written to the named pipe.

This the...
12,295
Posted By sudvishw
Thank you
Thanks a lot for all your explanations and efforts. As you had rightly pointed out, I need not grep for blank lines having specified the field separator as '+'. Also, I missed to escape the...
12,295
Posted By sudvishw
I am not looking for an alternate way to do this....
I am not looking for an alternate way to do this. I would like to know what went wrong with the syntax I am using. Please help.
12,295
Posted By sudvishw
Problem with awk syntax
Hi,
Below is the code I am using. I am trying to list only those numbers which has a + symbol in it


cat num | awk -F"+" '{if (/^$/)
{
}
else
{if ( $0 ~ egrep "^[0-9+-]+$" )
{
if (...
1,000
Posted By sudvishw
Thanks a lot. It works.
Thanks a lot. It works.
1,000
Posted By sudvishw
getopts issue
Hi,
I have a script, that accepts two positional parameters. Now, I want to add one more optional parameter to it. But I do not want it to be an optional positional parameter as this will impact...
71,919
Posted By sudvishw
Got it. Thanks!!!
Got it. Thanks!!!
71,919
Posted By sudvishw
Hi, Thanks for your explanation. If I...
Hi,
Thanks for your explanation. If I understand it right, suppose we have a file as shown below:
hi
hi
hii
hi
Here hi comes 3 times.

First time when hi comes, x[hi] will be initialized to...
71,919
Posted By sudvishw
I am sorry. I cannot understand. It would be...
I am sorry. I cannot understand. It would be great if you can explain with an example. Usually we do a sort and then pick the unique records. Is there any sorting inbuilt in this awk :wall:
71,919
Posted By sudvishw
remove duplicate lines using awk
Hi,
I came to know that using awk '!x[$0]++' removes the duplicate lines. Can anyone please explain the above syntax. I want to understand how the above awk syntax removes the duplicates.

Thanks...
6,019
Posted By sudvishw
html formatting using awk
Hi I have a file as given below:

<table border=1>
<TR><TH>Script Name</TH><TH>CVS Status</TH><TH>Script Location</TH></TR>
<TR><TD><CENTER>Work Area: /home/ustst/</CENTER></TD></TR>...
15,871
Posted By sudvishw
string comparison not working inside while loop
The string comparison highlighted below is not working fine. Please help:

while read line
do
# Get File name by deleting everything that preceedes and follows Filename as printed in cvs...
4,564
Posted By sudvishw
Thanks a lot. It worked :)
Thanks a lot. It worked :)
4,564
Posted By sudvishw
String comparison not working inside while loop
Hi,
In the code included below, the string comparision is not working fine. Please help
while (( find_out >= i ))
do
file=`head -$i f.out|tail -1`
dir=`dirname...
1,846
Posted By sudvishw
Automate ineractive applications
Hi Friends,
I have a ksh script which is created by a user, 'ustst'. I need to su to another user, 'ghprod' and execute a script created by 'ghprod'.

su - ghprod
The above cmd asks for...
Forum: AIX 12-01-2009
4,917
Posted By sudvishw
Signaling TWS from AIX
Hello Friends,
We are manually executing a ksh script. On the successful completion of the script, we go to Tivoli Workload Scheduler console and manually submit a Job stream. In doing so, there is...
Forum: AIX 11-11-2009
9,395
Posted By sudvishw
Thank you very much
Hi,
It worked out fine. I did a small change with the code you gave as shown below:

I am not sure why awk -F"[ .]" did not work. I got just "..." as output when I used it.

Thank you very much...
Forum: AIX 11-11-2009
9,395
Posted By sudvishw
List only the recent log files
Hi Friends,

I have a list of files in a directory as shown below. It is basically in this format-> yymmdd.hhmmss.filename.out




I want to list the latest log of each file. ie. the...
Showing results 1 to 25 of 25

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