Search Results

Search: Posts Made By: bhupeshchavan
4,155
Posted By bhupeshchavan
Hi RudiC, I seem to get the logic now.My...
Hi RudiC,
I seem to get the logic now.My understanding is below:

TMP = TMP DL $0
1st line TMP = "" "" name=admin --> since $0 is this value.
...
4,155
Posted By bhupeshchavan
Hi Don, Thank you very much for the...
Hi Don,

Thank you very much for the explanation.

I got it , just for my understanding(like setting up values first and then evaluating it) i tried the below code and the output is fine, please...
4,155
Posted By bhupeshchavan
Thank you Don.. Hi RudiC, Your code is working...
Thank you Don.. Hi RudiC, Your code is working but i am not able to understand the code except for the next statement which tells awk to read the next line and substr line in which you are...
4,155
Posted By bhupeshchavan
Hi Chill3chee, It worked, the output is as...
Hi Chill3chee,

It worked, the output is as expected.

The only doubt is : if ((b[1] + 0) >=0 && (b[1] + 0) <= 12) , i presume you are doing this :b[1] + 0 just to ensure that value is numeric by...
4,155
Posted By bhupeshchavan
Hi RudiC, I tried your code but the output...
Hi RudiC,

I tried your code but the output is not as expected.

[bhupesh@RHL9 capgemini]$ awk '
{OUT[$1] = $2
}
/eof/ &&
OUT["time"] <= 12 ...
4,155
Posted By bhupeshchavan
Hi Don, Your comments gave me some hint...
Hi Don,

Your comments gave me some hint where i was going wrong, to remove confusion of RS and to check if the "record separator produces an empty 1st field in records after the 1st record", i...
4,155
Posted By bhupeshchavan
Hi Don, Please find the details required: ...
Hi Don,

Please find the details required:

[bhupesh@RHL9 bhupesh]$ ls -ltr `which awk`
lrwxrwxrwx 1 root root 14 Oct 9 2011 /usr/bin/awk -> ../../bin/gawk
[bhupesh@RHL9...
4,155
Posted By bhupeshchavan
awk script: need help
Hi Team,

i need a awk script for reporting purpose, below is the sample output of the log file:
transid=01
name=admin
time=06.58.51
message=test
eof
transid=02
name=account
time=14.58.51...
10,923
Posted By bhupeshchavan
Hi, Try the below code: for a in `find...
Hi,

Try the below code:

for a in `find . -type d`
do
cd $a
yourlogic
cd <lcoation of the script where it is>
done

This will into all the directories and their sub-directories and apply...
1,195
Posted By bhupeshchavan
Hi, Try below code: find /home -name...
Hi,
Try below code:

find /home -name "*.pop" -type f -mtime +240 -exec rm -f {} \;

i am considering 30 days in a month.

Thanks and regards,
Bhupesh.

Use code tags, thanks.
3,156
Posted By bhupeshchavan
Hi Don, Thank you very much for the script,...
Hi Don,

Thank you very much for the script, it is working as it should be.

Since my knowledge on awk is minimal, i was not able to understand the script...could you please explain the script in...
21,083
Posted By bhupeshchavan
what if we want to use it after second word. ...
what if we want to use it after second word.
thanks in advance.
3,156
Posted By bhupeshchavan
This is not a homework.... based on the...
This is not a homework....

based on the logic i will another script which might have similar..as of now the request is not yet received.....

1. at home i have got bash...in office it is...
3,156
Posted By bhupeshchavan
Thank you very much for pointing out the...
Thank you very much for pointing out the mistake....

Operating system is red hat 9.0 and Aix 5.3...even I was thinking to use awk but was not sure of syntax....

Please suggest a better way..
3,156
Posted By bhupeshchavan
Issue in shell script
item,quantity,unit price,total
tea,1,1,1
coffee,3,4,12
sugar,5,2.5,12.5
tea,2,1,3
coffee,2,4,8

i have got the above file with following questions:
need to get the total value: which i got...
3,877
Posted By bhupeshchavan
Batch script to execute shell script in UNIX server
Hi team,

My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.

I have completed the first part i.e From...
Showing results 1 to 16 of 16

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