Search Results

Search: Posts Made By: MOHANP12
1,525
Posted By MOHANP12
Thanks in advance tail -2 return two file but...
Thanks in advance
tail -2 return two file but I have to handle the film type there is two type in example STATE AND MEdd I want that code return one from state type and another from medd type on...
1,525
Posted By MOHANP12
Fetch the latest filename shell script
Hi

I want to fetch the latest file form the list
example


example= filename RATE_STATE_SETUPS.20151222.ccyymmdd.hhmmss.txt
File pick which have latest ccyymmdd.hhmmss


list of file in...
4,885
Posted By MOHANP12
Yes you can use anything just i need a solution...
Yes you can use anything just i need a solution that work
4,885
Posted By MOHANP12
date +"%Y%m%d" AND awk -v date="$(date +"%Y%m%d"...
date +"%Y%m%d" AND awk -v date="$(date +"%Y%m%d" )
NOT WORKING ALREADY TRY ON AIX 6
THANKS MAN

---------- Post updated at 12:07 PM ---------- Previous update was at 12:03 PM ----------

my...
4,885
Posted By MOHANP12
yes you right
yes you right
4,885
Posted By MOHANP12
I want to use awk like this awk -F '.' '{ ...
I want to use awk like this

awk -F '.' '{
IF($1== mohan_moh)
then print ok
elif ($2= --some regular expression to validate date) here $2 is 20151222
then print ok
elif ($3= --some regular...
4,885
Posted By MOHANP12
Thanks in advance but it not working
Thanks in advance but it not working
4,885
Posted By MOHANP12
Validate date and time in filename by awk
hi
i want to validate the date and time in filename

filename : mohan.moh.ccyymmdd.ccyymmdd.hhmmss.txt
mohan_moh.20151222.20151222.122442.txt


i want code that check that date given in...
1,893
Posted By MOHANP12
My OS is AIX 7 and ksh shell Input data ...
My OS is AIX 7 and ksh shell

Input data



ISA*00* *00* *ZZ*ABCCOM *ZZ*99999999 *040315*1005*U*00401*004075123*0*P*:...
1,893
Posted By MOHANP12
awk to sum in Loop
i want code in awk with loop to get the sum

* is delimiter in file

TOTAL_AMOUNT=SUM(CLP04)
suppose there are 12 CLP04 segment in my file i want to add upto 5 CLP04 then print next line after...
5,948
Posted By MOHANP12
Please let me know how to use code tag
Please let me know how to use code tag
5,948
Posted By MOHANP12
MY sample data ABC|edgf|T1J333|201211304 ...
MY sample data
ABC|edgf|T1J333|201211304
ABC|edgf|T1J333|201211303
ABC|edgf|T1J333|201211302
ABC|edgf|T1J333|20121131
TRL00004

new requirement in which Trailer is add in file

delim_flag=0...
5,948
Posted By MOHANP12
MY sample data ABC|edgf|T1J333|201211304 ...
MY sample data
ABC|edgf|T1J333|201211304
ABC|edgf|T1J333|201211303
ABC|edgf|T1J333|201211302
ABC|edgf|T1J333|20121131
TRL00004

new requirement in which Trailer is add in file

delim_flag=0...
5,948
Posted By MOHANP12
Hi Don Cragun Thanks delim_flag=0 ...
Hi Don Cragun

Thanks


delim_flag=0
awk -F '[~][|] ' 'BEGIN{delim_flag=0} NF != 30 {delim_flag=1} END{print delim_flag}' "filname"`



This code is working fine. This code test that file...
5,948
Posted By MOHANP12
Thanks in advance but these all condition are...
Thanks in advance but these all condition are already try not working .My OS is AIX.

---------- Post updated at 06:45 AM ---------- Previous update was at 05:21 AM ----------

Hi...
5,948
Posted By MOHANP12
Hi RavinderSingh13 My OS is AIX unix. ...
Hi RavinderSingh13

My OS is AIX unix.

[Error]

+ + awk BEGIN{FS="~|*"} {if(NF!=30){print NR OFS OFS 1} else {print NR OFS OFS 0}} OFS=\t TGT_OUTBND_20151012_122417DUP.txt
awk: 0602-521...
5,948
Posted By MOHANP12
Rabindra Thanks in advance The code...
Rabindra

Thanks in advance


The code you provide is given same error . There is issue with *


[Error]

awk: 0602-521 There is a regular expression error.
?*+ not preceded by...
5,948
Posted By MOHANP12
Count delimiter(~|*) each row in a file and return 1 or 0
Hi

I want to check delimiter in file. Delimiter in my file is ~|*

sample of file :
ABC~|*edgf~|*T1J333~|*20121130
ABC~|*sdaf~|*T1J333~|*20121130
ABC~|*fsdg~|*T1J333~|*20121130...
Showing results 1 to 18 of 18

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