Package: moreutils Version: 0.18 Severity: wishlist
An easy problem that needs a tool: I've just been reading various message boards and usenet threads about how to set up 'Freenx', (O the pain!), and what I noticed was that there were an awful lot of config files dumped by confused users, and most 'em were comments. So much useless data... Suggest a 'nocomment' util would be useful, even though at first glance it might seem too trivial to bother with. It would work like this function: nocomment() { grep -v -e '^#.*$\|^$' $1 ; } ...but allow for other whitespace, and take stdio. Maybe have an option to include "vicinity comments" -- that is, show the preceding or nearby comments for any line that isn't a comment. It might be made language aware, for scripting languages with different comment syntax. Why it'd be useful, if used: wc -l < /etc/ssh/ssh_config ; nocomment /etc/ssh/ssh_config | wc -l 45 3 Hope this helps... -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.16-2-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages moreutils depends on: ii libc6 2.3.6.ds1-5 GNU C Library: Shared libraries ii perl 5.8.8-6.1 Larry Wall's Practical Extraction moreutils recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]