Search Results

Search: Posts Made By: dsdev_123
2,527
Posted By dsdev_123
I tried this but its not working . iam using AIX...
I tried this but its not working . iam using AIX 6.1.

Thanks again
2,527
Posted By dsdev_123
awk print re-direction to a file with timestamp appended
Hello

I need to split big xml file into multiple files based on xml declaration. for that i have written one awk 1 liner as below

awk '/<?xml\ version/{i++}{print > "outfile."i}' test123.xml
...
Forum: AIX 08-09-2012
2,658
Posted By dsdev_123
special characters in front of xml declaration
Hi

I read xml files through mq and placed them on unix by using datastage as tool.

I can see some special characters infront of declaration part for every xml file i have produced.

below is...
946
Posted By dsdev_123
Hi there would be instances where detailed...
Hi

there would be instances where detailed level lines are not eqal and we might expect no detailed lines and just the header in some cases
946
Posted By dsdev_123
need help in splitting the file
hi
i have file with the format as below. header and associated company details

company,accno,accname,amount
abc,123,checking,100
abc,234,saving,200
company,accno,accname,amount...
1,640
Posted By dsdev_123
sorry to ask this again in the input file i...
sorry to ask this again
in the input file i have 2 columns and the logic should be applied on col2 and the 2 columns are separated by comma in the input file.The outfile should have 2 columns in the...
1,640
Posted By dsdev_123
Thankyou itworks. dsdev
Thankyou itworks.

dsdev
1,640
Posted By dsdev_123
wonderful. thank you very much. can you...
wonderful. thank you very much.

can you please explain me the code.

Thanks
dsdev

---------- Post updated at 10:53 AM ---------- Previous update was at 10:21 AM ----------

Sorry for...
1,640
Posted By dsdev_123
Logic needed to recursive looping in the script
Hello

i have a requirement where in a file i will get string. The length could be from 1 to 20. if the string is less than 6 characters ( ex: ABCD) . i need to append 'X' on right hand side to...
8,771
Posted By dsdev_123
hi Thanks for the reply. It might not be the...
hi
Thanks for the reply.
It might not be the end of the line.Let say if i want to extrct the string out of 3 rd and 4th delimter; then which command should i use. if i want 345 then which command...
8,771
Posted By dsdev_123
find the string in a line
Hello

I have a abc.txt file which semicolon delimited. I need to read the first line of the abc.txt file where i need to extract specific string which at specific location.

i.e first line of...
1,275
Posted By dsdev_123
urgent help awk script
Hi

I have a scenario where i have a file name as

abcd_To_hfgh.20090456778_1.dat

I will get the filename as parameter


and i need a string in between second _ and first . i.e i need ...
1,793
Posted By dsdev_123
Hi when i executed this i am getting ...
Hi when i executed this i am getting
A^%^B^%^C^%^

The last filename should not get ^%^ at the end.

Thanks for your reply
1,793
Posted By dsdev_123
reading multiple files
Hello

I have a requirement where i have to loop through certain directory which will have multiple files. After looping through i have to make a list of file names exisitng in the directory and...
8,109
Posted By dsdev_123
delete zero byte file
Hello

I have a requirement where i need to find the zero byte size file in the directory and need to delete that zero byte file.

Thanks
2,513
Posted By dsdev_123
matching a string
I have a requirement of shell script where i need to read the File name i.e ls -t | head -1 and Match that Filename with some delimited values which are in a separate File.

For Example i am...
1,243
Posted By dsdev_123
Thanks That works
Thanks

That works
1,243
Posted By dsdev_123
script problem
Hello

I am trying to execute the following script

#!/bin/ksh
ABC=/abc/def/ghi/jkl/mna/opq/input
cd $ABC
Filename=`ls -t $ABC | tail -1`;
echo $Filename
awk 'NR == 1 || substr($0,63,5) ~...
3,381
Posted By dsdev_123
error while executing the script
Hello

I am executing the following script

nawk 'NR == 1 || substr($0,63,5) ~ /H... / && \
_++ == 2 { fn && close(fn); fn = "part_" ++c; _ = 1 }
{ print > fn }' sample.dat

When i execute...
4,095
Posted By dsdev_123
Hello radoulov, Thanks for your help. When i...
Hello radoulov,

Thanks for your help. When i used the script on my real data it didnt work accordingly.

My real data looks like below. I have pasted the sample data for 3 invoices. due to...
4,095
Posted By dsdev_123
Hello I am sorry its working fine when i...
Hello

I am sorry its working fine when i used nawk. Thanks for your help. Can you explain me the code.
because In future i may have to split the input file for every 50 invoices.

Thanks
4,095
Posted By dsdev_123
I am using AIX
I am using AIX
4,095
Posted By dsdev_123
Hello The script is not working. this...
Hello

The script is not working.

this is the error

Syntax Error The source line is 1.
The error context is
<<< NR == 1 || /.H... / && _++ { >>>
awk: 0602-502 The statement...
4,095
Posted By dsdev_123
Yes Thats right.Each invoice might contain 1...
Yes

Thats right.Each invoice might contain 1 line 2 lines or 3 lines etc

If it contains 1 line it would be
4T999M000 001

if it contians 2 lines it would be

4T999M000 001
4T999M000 002...
4,095
Posted By dsdev_123
Basically each invoice's second character of the...
Basically each invoice's second character of the first line is "H" and sixth character is " " (space)
Showing results 1 to 25 of 34

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