Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

removing CSV files once they are used using bash

I am currently working on several transformations starting from a CSV file (file1.csv).
Once the transformation is done, I export it to a new file (file2.csv).
>file2.csv

I would like to remove then the first file (file1.csv) with bash code.

How can I do?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I could not find related information over here.

Thanks.

>Solution :

I’m not sure, that i completely understand your question, because you should find plenty information about what you’re describing.

Just use:

rm /some-directory/file2.csv

or maybe it didnt work because you didn’t have permissions.. then use

sudo rm /some-directory/file2.csv

I hope it helps. Otherwise some clarification and an example on your problem would be good.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading