Search Results

Search: Posts Made By: humaemo
1,055
Posted By humaemo
Grouping and Calculating
Hi All,

I want to read the input file and store the output in the Output file. I pasted the sample Input and Output file below. Help me with this.

Input file...
30,653
Posted By humaemo
sure :)
sure :)
30,653
Posted By humaemo
i just little modify the script. awk -v...
i just little modify the script.

awk -v outfln="$2" -v somevar="$1" '{ DUNS = substr($0,0,9);if ( substr($0,14,3) == somevar ) print DUNS > outfln }' J389247.TXT


it is working fine....
30,653
Posted By humaemo
Passing value as a command line argument in awk script.
I have one working awk command line. Which taking data from the “J1202523.TXT” file and generating the “brazil.dat” file. PFB code.
awk '{ DUNS = substr($0,0,9);if ( substr($0,14,3) == "089" )...
2,503
Posted By humaemo
Thanks Harish. script is workig find :)
Thanks Harish. script is workig find :)
2,503
Posted By humaemo
Look like some confusion happen here. My input...
Look like some confusion happen here.
My input file is :
---------------------------------------------------
Input.txt
---------------------------------------------------
american express...
2,503
Posted By humaemo
Actually I do not want to print the value. If...
Actually I do not want to print the value. If value is present then create “Present.txt” otherwise “notpresent.txt” file.
Note: in input file I have more than 1000 record so only I want to read one...
2,503
Posted By humaemo
there is no difference between your and my code...
there is no difference between your and my code except ";", I tried but it is not working :(
2,503
Posted By humaemo
How to take a full sentence and check the condition?
I have one input file and content of file is :
---------------------------------------------------
Input.txt
---------------------------------------------------
american express
Bahnbau GmbH...
8,875
Posted By humaemo
now it is working. thanks for your help
now it is working. thanks for your help
8,875
Posted By humaemo
Thanks for exercise. but above code is not...
Thanks for exercise. but above code is not converting multiline into one line.
8,875
Posted By humaemo
convert Multiline file in one line file
Hi,
Hi, we have one input file and file contain single line and multiline date. We want to convert multiline line in one line. Each file start with sequence of 000000001, 000000002, 000000003 so on....
2,113
Posted By humaemo
I ran the below command. perl -lpe...
I ran the below command.

perl -lpe 's!.*(<DTCLIENT>.*?</DTCLIENT>).*(<APPID>.*?</APPID>).*(Lookup Time=[^*]*).*!$1\t$2\t$3!' soap.txt > H

output
----------

<SOAP-ENV:Envelope...
2,113
Posted By humaemo
command is not working. instead of Lookup time...
command is not working. instead of Lookup time deatails it is displaying full tag .
2,113
Posted By humaemo
thanks both command is working fine :) ...
thanks both command is working fine :)

---------- Post updated at 10:26 PM ---------- Previous update was at 09:58 PM ----------

i want to add "Lookup Time=2818 ms" too in file plz help how...
2,113
Posted By humaemo
How to cut data from file and create another file.
I have file which has more than 1000 lines. PFB file info
Line 1.
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"...
1,684
Posted By humaemo
wow its nice Franklin52
wow its nice Franklin52
1,684
Posted By humaemo
thanks hergp.. command is working file but i want...
thanks hergp.. command is working file but i want to create two seprate file
1. one condition is true.
2. second condition is not true.

---------- Post updated at 02:43 PM ---------- Previous...
1,684
Posted By humaemo
create separate file after checking condition..
Problem :
I want to create a separate file for country list if condition is true. Please help.
*****************************************************
Input file:...
Showing results 1 to 19 of 19

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