Search Results

Search: Posts Made By: amit.behera
2,674
Posted By amit.behera
Hi, awk -F"," '{if (NR>1 && a==$1) {print...
Hi,

awk -F"," '{if (NR>1 && a==$1) {print FS$2FS$3;a=$1} else {print $0;a=$1}}' input.csv > output.csv

This is working fine.
But can you please explain it.

And also the above code is...
2,674
Posted By amit.behera
Input csv Party failurereason number ...
Input csv

Party
failurereason
number
Cvf
Rejected
12
Cvf
Approved
45
Cvf
Onhold
23
Mvc
Unknown
98
Mvc
Oncall
17
2,674
Posted By amit.behera
Thanks Pravin. It worked. But the output is...
Thanks Pravin. It worked.
But the output is getting generated as expected.
The present output that is getting generated now is:-
party| failurereason| number
-----|---------------|---------------...
2,674
Posted By amit.behera
csv file manipulation
Hi,

I generated a csv file.But i have to manipulate it to make it user friendly. This is the structure of the input csv file.
...
6,157
Posted By amit.behera
Thank Scott
Thank Scott
6,157
Posted By amit.behera
variable declaration
Hi Guys,

What does this mean actually ? Can somebody give me any explanation ?

x=${x:=1}

Thanks
14,806
Posted By amit.behera
Thanks very much. The work around clicked
Thanks very much.
The work around clicked
14,806
Posted By amit.behera
Jlliagre, i am converting script from KSH shell...
Jlliagre, i am converting script from KSH shell to SH shell for some backward compartibility factors in some other servers.

Jgt, i didnot get anything from the link you have given.

My problem...
14,806
Posted By amit.behera
export not working in Bash shell
Hi Friends,
I am presently migrating shell scripts writter in KSH to SH.I am stuck at this place and i am not able to find a work around:-
Let the script name is x.sh
Below are some of the...
Showing results 1 to 9 of 9

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