Search Results

Search: Posts Made By: bhaskar v
24,398
Posted By kpkanani
Please use below
Hello Bhaskar,
This is what you need??$ cat file3
COL1,COL2,COL3,COL4,COL5
1,A,B,C,D
2,e,f,g,h
$ cat file3 | awk -F "," '{out=$1; for(i=2;i<=NF-2;i++){out=out","$i}; print out","$(NF-1)$NF}'...
24,398
Posted By ssk250
I am not an expert in unix to tell the most...
I am not an expert in unix to tell the most effective way to get your result. But hope this will help you as a temporary fix. Try the below codeawk -F, '{print $1","$2","$3","$4$5}' <filename>

I...
Showing results 1 to 2 of 2

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