У меня есть этот тип .txt файла:
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
Я хотел бы удалить , \
, если последняя строка:
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx, \
xxxxxxxxxxxxxxxxx
В AIX я пытаюсь:
sed "s/\//" test.txt
Но это не работает ...
Не могли бы вы мне помочь?