I have a text file that looks like this:
FD488AFF,
FED6ECFF,
FFA2A2FF,
FFD7D8FF,
(
)
This also has a newline character after the last )
character. I am using the macOS terminal and looking for a way to remove the last comma, the (, and the last ), and the return characters following them.
,
(
)
and the new line character following the last ) character, but I can't seem to get this to work. I don't have to use sed
, but it does need to be using the terminal.