cygwin linux append line number to each end of line May 24, 2010 Get link Facebook X Pinterest Email Other Apps $ sed '/./=' somefile.txt | sed '/./N; s/\n/ /' | sed 's/\([0-9]*\) \(.*\)/\2 \1/' Comments
Comments