lkml.org 
[lkml]   [2000]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ot?] [patch] posting .config files
On Wed, 8 Mar 2000 bernie@pertsounds.com wrote:
> perl -pe 's/^CONFIG_//;s/^\#.*//;s/\=y$//;s/^\s*$//' .config

sed '/^CONFIG/!d;s/CONFIG_//;s/=y//' .config
..a bit easier to read, shorter, faster :)

shall we have a competition to improve this regex even more?

(sed)
real 0m0.026s
user 0m0.020s
sys 0m0.000s

(perl)
real 0m0.037s
user 0m0.080s
sys 0m0.000s

-d


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2011 Jasper Spaans