How do I remove the comma from the last line of the file? Here is the file:
# cat ox_data_archive_r_20120727.json {\"name\": \"secondary_ua\",\"type\":\"STRI
This should work:
sed '$ s/,$//g' input_file
$
You could add -i and sed will apply the changes to your input_file.
-i
sed
input_file