What Text Editor for Linux?
By jeltsch on Thu, 05/24/2007 - 21:39I have been using emacs (or Xemacs) so far, but now I started to use Nedit. Seems to be quite powerful and fast (although nothing comes close to BBEdit, unfortunately only for Macs).
I have been using emacs (or Xemacs) so far, but now I started to use Nedit. Seems to be quite powerful and fast (although nothing comes close to BBEdit, unfortunately only for Macs).
The following sed command deletes empty lines (and those with white spaces only) from text files: sed -e '/^ *$/d' infile.txt > outfile.txt
You have to be careful though: if you copied the textfile from a Macintosh this script won't work. You first have to convert the Macintosh textfile into a UNIX textfile!