Search Results

Search: Posts Made By: Amruta Pitkar
9,198
Posted By Amruta Pitkar
syntax error with awk.
Hello Klashxx,
This worked.

Thanks
9,198
Posted By Amruta Pitkar
syntax error with awk.
A shell script a.sh calls an awk script using :
awk -v OUTPUTDIR=${OUTPUTDIR}${OUTPUTDIRDATE} -f ${SCRIPTSPATH}chngNullBillId.awk ${INPUTFILE}

chngNullBillId.awk :
{ if (substr($0,9,4)=="0000")...
9,019
Posted By Amruta Pitkar
hello praveen kumar, Pls. can u explain ur...
hello praveen kumar,
Pls. can u explain ur latest sed command , mentioned in the thread.

hello panknil,
I tried ur suggestion. But still recv the same error.

hello ghostdog,
usage of nawk...
9,019
Posted By Amruta Pitkar
Hello ghostdog, I am using this : awk '$4 ~...
Hello ghostdog,
I am using this :
awk '$4 ~ /^+/{ sub(/^\+0+/,"",$4) }{print $0}' MyFile.txt

But it is still giving me the foll. error.
awk: 0602-521 There is a regular expression error.
...
9,019
Posted By Amruta Pitkar
Hello ghostdog74 I get the follow. error...
Hello ghostdog74

I get the follow. error when I try to implement ur awk script.

awk: 0602-521 There is a regular expression error.
*?+ not preceded by valid expression
The source...
9,019
Posted By Amruta Pitkar
Hello ghostdog Can u please explain ur awk...
Hello ghostdog
Can u please explain ur awk script ?

Thanks.
9,019
Posted By Amruta Pitkar
How to trim the leading zeroes in a Currency field ?
How do I trim the leading zeroes, and (+,-) in the currency field ?

I have a text file.
Your bill of +00002780.96 for a/c no. 25287324 is due on 11-06.
Your bill of +00422270.48 for a/c no....
12,897
Posted By Amruta Pitkar
Sort, Uniq, Duplicates
Hi MatrixMadhan,
Please look at the inputfile :
84176527,0047,03,1st
84176527,0047,03,
Is a duplicate record if I want to sort on 1st and 2nd field.

I sorted the issue with :
cat inputfile...
12,897
Posted By Amruta Pitkar
Sort, Uniq, Duplicates
Input File is :
-------------
25060008,0040,03,
25136437,0030,03,
25069457,0040,02,
80303438,0014,03,1st
80321837,0009,03,1st
80321977,0009,03,1st
80341345,0007,03,1st
84176527,0047,03,1st...
1,766
Posted By Amruta Pitkar
Grep solution
I have a file arg_file
a1, b1, c1...
a2, b2, c2...
a3, b3, c3...
a4, b4, c4...
a5, b5, c5...
a6, b6, c6...
a7, b7, c7...
a8, b8, c8...
a9, b9, c9...

I have another file pat_file
a2
a5...
2,729
Posted By Amruta Pitkar
Moving next 2 lines to previous line.
Hello anbu23

It worked...thanks.

Amruta
2,729
Posted By Amruta Pitkar
Moving next 2 lines to previous line.
Hi anbu23,

I tried ...but when I execute the paste command at shell prompt it gets stuck up for infinite time...and no outputs is created...

I am using the following :
home/myscripts > paste...
2,729
Posted By Amruta Pitkar
Moving next 2 lines contents to previous lines
My input file is
aaa
bbb
ccc
a1a
b1b
c1c
a2a
b2b
c2c

I want the output file to look like that:
aaa,bbb,ccc
a1a,b1b,c1c
a2a,b2b,c2c

How do I achieve this ?
10,464
Posted By Amruta Pitkar
How to call a shell script from awk ?
BEGIN { account_no = substr($0,1,8)}
{ billdate = substr($0,13,20)}
{ billduedate = substr($0,21,28)}
{ billid = billid - 1}
{ billduedate =...
9,727
Posted By Amruta Pitkar
Simultaneous execution of processes..
Hi MatrixMadhan,

I am not sure how to code this exactly....
Also..from what I read...do I have to stop the background processes explicitly..
What if there are some problems with the data...
9,727
Posted By Amruta Pitkar
concurrent processes
We have a very large text file..contains almost 100K lines.
We want to process this file to generate another text file as per our data requirement.
As for now the parsing of data takes 20-25 mins...
2,136
Posted By Amruta Pitkar
Hello This is still counting words instead...
Hello

This is still counting words instead of the lines where the matched words are found.
2,136
Posted By Amruta Pitkar
Awk ...
This is how my input file is .
< IM.OMNI #5.2.2 SMTP; 552 cq05c.my.corp.root: your "received:" header counts of 16 exceeds maximum setting 15>
adjsahdjas kasdks 91039 sdf
sdhsahsah dfkdsjf...
3,516
Posted By Amruta Pitkar
extract bulk emails into a single flat file
Hello

Can someone guide me how to extract bulk emails into a single flat file ?

We receive mails (approx 1K daily ).
I want the contents of the emails for 'current date' to be dumped into one...
2,449
Posted By Amruta Pitkar
configuring sendmail.cf version is 1.74
Hello

Please someone guide me to configure sendmail.cf on AIX 5.3
The sendmail.cf version is 1.74( bos53A src/bos/usr/sbin/sendmail/sendmail.cf 1.74)

Thanks
Amruta
9,473
Posted By Amruta Pitkar
Thanks for ur replies. No I dont intend to...
Thanks for ur replies.

No I dont intend to send spam mails.
We are sending emails to our customers (a very large number of customers) and would like to get / store info about the email ids for...
9,473
Posted By Amruta Pitkar
Help me with bounce back mails.
I have the following doubt :

I login on my Unix machine as 'myid'
I send out mails from this id setting the Header Properties in sendmail command. (From : g-eacctst01).
I try sending mail to a...
2,204
Posted By Amruta Pitkar
How to set the File Paths for Inputs and Outputs
I have couple of shell scripts.
Each shell script accepts command line argument as inputfilename.
Each shell script creates a summary file, status file.

All these files are stored in a...
23,502
Posted By Amruta Pitkar
Please refer to my reply
Please refer to my reply to this thread in Advanced Users forum here.
Maybe it can help u.

Thanks
Amruta Pitkar
2,412
Posted By Amruta Pitkar
Thanks
Thanks for the enlightenment....
I thought I was being in-line with the requirements of the forum....
Will keep ur instructions in mind henceforth.
Showing results 1 to 25 of 54

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