Search Results

Search: Posts Made By: ssantoshss
1,856
Posted By ssantoshss
How to Perl Code in Windows?
I got this perl code for solaris from tyler_durden

Please help me to run the same on windows as i am unable to install date::calc program on unix

perl -F, -M"Date::Calc qw(Add_Delta_DHMS)"...
8,768
Posted By ssantoshss
Any help that i can get on a shell solution will...
Any help that i can get on a shell solution will be appriciated...
8,768
Posted By ssantoshss
Dear Tyler I have managed to install perl...
Dear Tyler

I have managed to install perl and DateCalc on Windows...I also installed Cygwin and i am able to run your code.
Thanks a lot for your help.

Regards
Sampy
8,768
Posted By ssantoshss
Dear Tyler...I dont have any access to install /...
Dear Tyler...I dont have any access to install / remove softwares on these servers...I just have an account on this machine.
Thanks a lot for your help...

Any other solutions that can help me out...
8,768
Posted By ssantoshss
I dont know how to use perl....but when i try and...
I dont know how to use perl....but when i try and execute this on Solaris 8...below is the error message

Can't locate Date/Calc.pm in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int...
8,768
Posted By ssantoshss
This needs to be run on Solaris 8
This needs to be run on Solaris 8
8,768
Posted By ssantoshss
Add/Subtract Time
need some help on the below requirement:


File1:
SV,22,20100501140000,JFK,RUH
SV,29,20100501073000,BOM,RUH
SV,29,20100501073000,SIN,RUH


third filed is datetime which is of the format...
3,190
Posted By ssantoshss
works fine now...Thanks a lot for all the help.
works fine now...Thanks a lot for all the help.
3,190
Posted By ssantoshss
i am getting the below error... $ awk...
i am getting the below error...

$ awk 'NR==FNR{_[substr($0,1,4)];next}{for(i in _){if(i==substr($0,27,4)){ print $0}}}' abc.dat sant.dat
awk: _ is not an array
record number 1
3,190
Posted By ssantoshss
Search in specific position and print the whole line
I have two files abc.dat and sant.dat (Big file 60k rows)
for every line's 1,4 of abc.dat need to seach if this is present on 28,4 of sant.dat every line.

if its present the output needs to go...
4,009
Posted By ssantoshss
Hi All I think i found the problem, the...
Hi All

I think i found the problem, the other varient of awk worked fine for me.

nawk '{print toupper(substr($0,30,2))}' /tmp/test.dat

o/p == GF

Thanks a lot for all the help.
Regards...
4,009
Posted By ssantoshss
just did this awk '{print...
just did this

awk '{print toupper(substr($0,30,2))}' /tmp/test.dat

o/p was just

gf

toupper doesnt seem to work. I am on Solaris 10 does this have any impact ?
4,009
Posted By ssantoshss
I am looking @ gf which has to get converted to...
I am looking @ gf which has to get converted to uppercase
there are 4 spaces after 10001da, 2 spaces after LHR and BAH.
then gf would come to 30th position

"10001da 20080925LHR BAH gf 0006V...
4,009
Posted By ssantoshss
awk '{print...
awk '{print substr($0,1,30)toupper(substr($0,31,2))substr($0,33)}' /tmp/test.dat > /tmp/abc.dat

tried on the below sting

10001da 20080925LHR BAH gf 0006V 20080818001SSA9122278L4NB ...
4,009
Posted By ssantoshss
this would work fine on single record...i have...
this would work fine on single record...i have 400 million rows on which this should work
4,009
Posted By ssantoshss
Convert case on specified position of flat file
Please help

Need a script which will do the following :

Search on fixed width file , go to position (25,2) which means 25th and 26th position, Find if there are any char in lower case:
...
Showing results 1 to 16 of 16

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