Search Results

Search: Posts Made By: premar
3,593
Posted By premar
comma seperator
Hi Guys sorry if i have violated the rules.Since my issue now has changed to a different one I created a new thread. Previously I had issue with cuting the columns in file and now my issue is about...
3,593
Posted By premar
comma seperator
Hi Rahul I am very new to unix/shell scripting...I thank you for ur reply..
But my problem is :because of the comma in the second field "Tom,Garry" of my original file, the cut command when i cut...
3,593
Posted By premar
Comma seperator
I am trying to create a new CSV file from an existing CSV file whose content is as follows:

"1","Tom,Garry","111"
"2","Tom,Garry","222"

when i use Cat file | cut -d',' -f1,3 or awk to have...
53,342
Posted By premar
Deleting specific columns of a file
I am able to cut the columns as I wanted. Thank you.
When I am doing so. I am facing another one problem

Actually I am manipulating a CSV file which is as I have given in my first post of this...
53,342
Posted By premar
Deleting specific fields from file
Hi
Thank you all.
If i need to print fields 1,2, then 5 to 9 then 11. Is there any other way or i have to specify only as

awk -F, '{ print $1","$2","$5","$6","$7","$8","$9","$11 }
53,342
Posted By premar
Deletion of specified columns
The code you have mentioned will copy the specified columns of the file to a new file.
Is there any way to delete the specified columns from existing file?
53,342
Posted By premar
Thank you
Hi Vino
Thank you
53,342
Posted By premar
Deleting specific columns from a file
Hi Friends,
I want to delete specific columns from a file.
Say my file content is as follows:

"1","a","ww1",1234"
"2","b","wwr3","2222"
"3","c","erre","3333"

Now i want to delete the column...
Showing results 1 to 8 of 8

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