James Freer <jessejazza3.uk@gmail.com>
[...] Joe does all i want other than coping with long lines. [I seem to recall a discussion about editors a few years ago and someone on here uses Joe]. Point is i want to save in long line form but view and edit in wrapped form - just like one does in gedit or leafpad. [...]
Why? To view a wrapped file as unwrapped: sed -ne 'H;/^$/{;x;s/\n/ /g;p;}' filename or for some files, this will suffice and leave more gaps: fmt -w2500 filename Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/