vendredi 22 janvier 2021

Random Filename Format

I'm trying to format output data using the following which works when I use the source filename.

tr -s '\r\n' ',' < source_file.out | sed -e 's/,s/\n/' > outputname.csv

The application writes filenames that that are sequential.

How can I exec the script to work with random source filenames and write the same ? The application allows the trigger of a script each time it writes a file.

tr -s '\r\n' ',' < 123.out | sed -e 's/,s/\n/' > 123.csv tr -s '\r\n' ',' < ABC.out | sed -e 's/,s/\n/' > ABC.csv




Aucun commentaire:

Enregistrer un commentaire