Thread
:
sed challange
View Single Post
Aug 17th, 2006, 8:46 AM
#
3
jim mcnamara
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power:
4
I came up with:
(
Toggle Plain Text
)
sed '/\n/!G;s/\(.\)\(.*\n\)/&\2\1/;//D;s/.//'
sed '/\n/!G;s/\(.\)\(.*\n\)/&\2\1/;//D;s/.//'
jim mcnamara
View Public Profile
Find More Posts by jim mcnamara