Search Results

Search: Posts Made By: mechvijays
2,682
Posted By mechvijays
Fixed with file- removing leading zeros and adding the space
Hi All,

i have a fixed width file , where each line is 3200 length.

File:

1ABC 1111 2222 3333 000012341 1001
2ABC 1111 2222 3333 000012342 1002
3ABC 1111 2222 3333 000112343 1003
1DEF...
10,952
Posted By mechvijays
Removing duplicates except the last occurrence
Hi All,

i have a file like below,

@DB_FCTS\src\Data\Scripts\Delete_CU_OM_BIL_PRT_STMT_TYP.sql
@DB_FCTS\src\Data\Scripts\Delete_CDP_BILL_LBL_MSG.sql...
3,463
Posted By mechvijays
awk '{f=sprintf("%s.txt",$NF); if(f in F){ print...
awk '{f=sprintf("%s.txt",$NF); if(f in F){ print >>f }else { print >f ; F[f]} close(f) }' file

how it is determining it is 3rd column.

how to use in comma delimited file and how to...
3,463
Posted By mechvijays
Thank u Akshay. it worked.. Thank u...
Thank u Akshay. it worked..


Thank u everyone :):):)
3,463
Posted By mechvijays
yes Akshay. that also throwed error
yes Akshay. that also throwed error
3,463
Posted By mechvijays
Hi All, Thank you very much for your...
Hi All,

Thank you very much for your response.

all the scripts is not working in my machine.I have attached the file i am using and the error i am getting.

the script is able to create only...
3,463
Posted By mechvijays
SunOS sasbsd27c1 5.10 Generic_150400-10 sun4u...
SunOS sasbsd27c1 5.10 Generic_150400-10 sun4u sparc SUNW,SPARC-Enterprise
3,463
Posted By mechvijays
please give commands other than awk, awk...
please give commands other than awk,

awk commands showing the error

awk: too many output files 10
record number 11


os :

SunOS sasbsd27c1 5.10 Generic_150400-10 sun4u sparc...
3,463
Posted By mechvijays
Split large file to smaller fastly
hi ,

I have a requirement

input file:


1 1111111111111 108
1 1111111111111 109
1 1111111111111 109
1 1111111111111 110
1 1111111111111 111
1 1111111111111 111
1 1111111111111 111...
1,286
Posted By mechvijays
Summing a number column
hi All,

i have a file in which only one column is there.,

test.txt
======
-900.01
-900.02
-900.03
-900.04
-900.05
-900.06
-900.07
-900.08
-900.09
900.01
900.02
900.03
900.04...
11,255
Posted By mechvijays
uapp291n -> echo "Basic invalid formatted dates...
uapp291n -> echo "Basic invalid formatted dates found:-"
grep -v "^[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$" vv.txt | while read line
do
echo "\t$line"
doneBasic invalid formatted dates...
11,255
Posted By mechvijays
@rbatte1 the above case staement is...
@rbatte1

the above case staement is throwing error...

i need only shell script or perl as mine supports that only.

i should not read line by line beacuse if 5 lakh records are there it...
11,255
Posted By mechvijays
hi all, my requirement is that in a file...
hi all,

my requirement is that in a file only dates will be there, in that i have to find whether any invalid date is there. if any invalid date is there i have to just get the result the file is...
11,255
Posted By mechvijays
Date validity check
hi All,

i have file in which it has 2000 records like,

test.txt
====
2011-03-01
2011-03-01
2011-03-01
2011-03-01
2011-03-01
2011-03-02
2011/03/02

previously i used for loop to...
Showing results 1 to 14 of 14

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