LINUX.ORG.RU

AWK вставить колонку

 


1

1

Добрый день!

есть файл list:
full/patch/to/file/file1 21 03
full/patch/to/file/file2 15 12
full/patch/to/file/file3 07 06

нужно сделать так:
full/patch/to/file/file1 21 03 file1
full/patch/to/file/file2 15 12 file2
full/patch/to/file/file3 07 06 file3

что я пробовал:
awk -F'[[:blank:]/]' '{ $8=$5 ; print }' list
awk -F'[ /]' '{ $8=$5 ; print }' list

выхлоп:

full patch to file file1 21 03 file1
full patch to file file2 15 12 file2
full patch to file file3 07 06 file3

как оставить слеши в файле?
буду благодарен за помощь