I need to remove first column from a csv file and i can do this by using below command.
cut -f1 -d, --complement Mytest.csv
I need to implement this in shell scripting, Whenever i am using the above command alone in command line it is working fine.
I have 5 files in my directory and i need to find this file and then need to remove the first column from the file and i have to use the updated file which doesn't contain the removed column for later use in the script.
I tried few ways but no luck, its is just displaying the data which is there in Mytest.csv.
Where are you sending the output to your cut command. Output from commands will typically go to your std out device, most often your screen. That is, unless you redirect your output.