Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: hemanthsaikumar
1,056
Posted By hemanthsaikumar
As iam generating that input file no codes will...
As iam generating that input file no codes will be their other than that 4 codes.. so their is no chance of new codes or increment in records...

so how can we add them using awk or any other...
1,056
Posted By hemanthsaikumar
hi Rudic, the input file will be...
hi Rudic,
the input file will be constant,amount may varies and the add will be on group of 2...

as per my requirement i have to add 345,346 and 399,400 ...is it possible to perform add ..?...
1,056
Posted By hemanthsaikumar
hi, I generated the report which i gave as...
hi,
I generated the report which i gave as input file and codes(345,346,399,400) in it are constant the amount will vary when i generate the input reports .Now i have to create the sum as shown in...
1,056
Posted By hemanthsaikumar
hi , sorry i modified the input and output. ...
hi ,
sorry i modified the input and output.

group is the code values like 345,346...

i have the input file format constant as stated above but i need to combine and need to get the total as...
1,056
Posted By hemanthsaikumar
How to add using awk command for a group?
hi all

below is the input file contains a code followed by amount

input file

345,5.86
346,20.58
399,10.00
400,12.00



i need the output in the following way outputfile

...
3,627
Posted By hemanthsaikumar
Need UNIX command to create a empty dataset
Hi all,
Is Der any unix command which will create a empty dataset ..?(in .ds ).I know we can use orchadmin dump command to view dataset data.. but how to create a dataset..?

like

...
2,025
Posted By hemanthsaikumar
hi , in the below code awk -F, ' {...
hi ,
in the below code

awk -F, '
{ printf("record %s sum is %s\n", $1, $2)
r[NR] = $1
c[NR] = $3
}
END { for(i = 1; i <= NR; i++) printf("record %s count is %s\n", r[i], c[i])
}' file
...
2,025
Posted By hemanthsaikumar
hi , thanks for the reply..i just gave a...
hi ,
thanks for the reply..i just gave a example for the input file,

Can you please tell me like how to print the sum digit in currecy format ..?

like

record 345 sum is 12,345

...
2,025
Posted By hemanthsaikumar
hi thanks for the help, I appreciate your...
hi thanks for the help,
I appreciate your skill.... :)
one more doubt after sort you are specifying 3,3 right is it the records count...?
and one more will the script work if i increase the...
2,025
Posted By hemanthsaikumar
Thanks for the explanation singh, Final...
Thanks for the explanation singh,

Final Query
you are displaying the output as

record 345 sum is 12
record 345 count is 10
record 400 sum is 11
record 400 count is 8
record 328 sum is 1...
2,025
Posted By hemanthsaikumar
Hi Singh, Thanks for the reply, In the...
Hi Singh,
Thanks for the reply,

In the output iam getting as

record 345 sum is 12
record 345 sum is 10
record 400 sum is 11
record 400 sum is 8
record 328 sum is 1
record 328 sum is 3...
2,025
Posted By hemanthsaikumar
Need Shell Script for Array
Hi all,
I have an input file like below (a comma seperated file)


345,12,10
400,11,8
328,1,3


I need to get the output as below ...

record 345 sum is 12
record 400 sum...
1,126
Posted By hemanthsaikumar
How to check the duplicancy of file using shell script?
Hi all,
i am getting the file through sftp from a location in the name of 20141201_file.txt (iam getting the file on daily basis with date appended at the beginning)

so before going to my...
6,052
Posted By hemanthsaikumar
Script to get previous date for the given input date..
hi all,
need a script or command to get the previous date for the given input date...

like in my script i will pass date as input parameter like 2014-12-01 and i want the output as previous...
5,618
Posted By hemanthsaikumar
hi all,, thanks for the reply... but i need to...
hi all,,
thanks for the reply... but i need to pass the date in the parameter so that it should compare with the previous date file ... for example

if my date is 20141201_file.txt then it...
5,618
Posted By hemanthsaikumar
Shell script to compare two files of todays date and yesterday's date
hi all,
How to compare two files whether they are same are not...? like i had my input files as 20141201_file.txt and 20141130_file2.txt

how to compare the above files based on date .. like...
1,605
Posted By hemanthsaikumar
Shell script to compare two files for duplicate..??
Hi ,
I had a requirement to compare two files whether the two files are same or different .... like(files contaisn of two columns each)

file1.txt

121343432213 1234
64564564646 2345...
621
Posted By hemanthsaikumar
hi , i did it by using the same awk command ...
hi ,
i did it by using the same awk command
its a predefined i cant change the format

14-08-25


can i get a output like

08/25/2014
621
Posted By hemanthsaikumar
Need command for date format
hi all,
i had a requirement in my script iam passing the parameter like (its not the system date iam passing as argument like it can be any date)

2014-08-25


but in my output file it should...
2,940
Posted By hemanthsaikumar
hi , actually iam getting the amount value from...
hi ,
actually iam getting the amount value from other file which is a comma seperated file... liek i had a doubt like how to insert this printf statement in the awk command

awk -F "," '{printf...
2,940
Posted By hemanthsaikumar
hi Scrutinizer, i had my script as defined like...
hi Scrutinizer,
i had my script as defined like my awk command is

amount=2000
awk -F "," '{printf $amount}'


i have to convert $amount to currency mine is a comma delimiter file aim getting...
2,940
Posted By hemanthsaikumar
hi in awk command can we do the same..? ...
hi
in awk command can we do the same..?

amount=2000
awk -F "," '{printf $amount}'


can u help me on this..?

---------- Post updated at 06:37 AM ---------- Previous update was at 06:32 AM...
2,940
Posted By hemanthsaikumar
hi, how can we include this %d tag in my prinf...
hi,
how can we include this %d tag in my prinf statement exactly like

a=qw
b=rter
c=fdfd
curency=1000
printf"${curency} $a $b $c" > filename


how to insert in the ablve printf...
2,940
Posted By hemanthsaikumar
Printf statement for currency conversion
hi all,
I had my script as

a=qw
b=rter
c=fdfd
curency=1000
printf"${curency} $a $b $c" > filename


can i have printf statement that can change the currency from 1000 to 1,000 like it...
473
Posted By hemanthsaikumar
hi all, thanks for the reply go it made the...
hi all,
thanks for the reply go it made the following change

printf"content1" > $filename
printf"content2" >> $filename
printf"content3" >> $filename
printf"content4" >> $filename...
Showing results 1 to 25 of 94

 

Featured Tech Videos

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