This Perl works from the command line (add the -i if you test it and it seems safe). You can do similar tricks in a script with $^I.
perl -p -e 's/,(?=\)\Z)//' [file list]In reply to Re: sed deleting file
by Your Mother
in thread sed deleting file
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |