Search Results

Search: Posts Made By: marpadga18
976
Posted By marpadga18
Data transformations
hi all,

I have oracle table which has like below example in col7 & col8 there will be values seperated , in one column it is kind of horizontal pivoting but the data is in 1 column seprated , ...
7,864
Posted By marpadga18
When I am trying it is not working the error it...
When I am trying it is not working the error it is giving is
$ nawk -F, '$8=sprintf("%.2f", $8)' OFS=, teat.txt
nawk: can't open file teat.txt
source line number 1
$
7,864
Posted By marpadga18
If i use this code sed -e 's/, *0*\./,0./' -e...
If i use this code
sed -e 's/, *0*\./,0./' -e 's/, *0.*\([1-9]\)/,\1/' sample.txt
00125
0245
If i use this code
nawk -F, '$8=sprintf("%.2f", $8)' OFS=, sample.txt
00125,,,,,,,0.00...
7,864
Posted By marpadga18
Removing leading zeros for a decimal column
removing leading zeros for a decimal column in a file which has string & decimal values

,,,,,6630140,XXXXXXXXXXXXXXX, 0020.00,USA
,,,,,6630150,XXXXXXXXXXXXXXXL (xyz, 0010.00,USA...
1,459
Posted By marpadga18
#! /usr/bin/ksh cd...
#! /usr/bin/ksh
cd /local/apps/Datastage/projects/HCP_Sharp_Tst/RejectFiles/
wc -m Reject_UK_VAT.txt

it is returning ***8 Reject_UK_VAT.txt***

value 8 then file name
but i need only value 8...
1,459
Posted By marpadga18
Check file size for a particular file
I am haveing one file I need to check whether the file size > 0 or not? any one could share ideas
6,740
Posted By marpadga18
thanks for your answer I got wat I need thanks...
thanks for your answer I got wat I need thanks for your help:):):):)
6,740
Posted By marpadga18
Check file exists on remote machine.
I am haveing one script haveing one issue with this could any one can reply soon it is very urgent.
:p
if ssh hcp_ftp@$1 'ls '$2/stop.txt' 1>&2 2>/dev/null'; then exit 1;
else
scp -p...
Showing results 1 to 8 of 8

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