In Unix I want to add slash before and after the line number in a .txt file
this command only shows the line numbers cat -n txt.file
this:
Tony Alpha Bravo
to this:
/1/ Tony /2/ Alpha /3/ Bravo
awk '{print "/" FNR "/ " $0}' file