lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 21 Jul 2007 18:17:08 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Matthew Wilcox <matthew@....cx>
cc:	Simon Arlott <simon@...e.lp0.eu>, Denis Cheng <crquan@...il.com>,
	kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] run scripts/Lindent on it to match Documentation/CodingStyle


On Jul 20 2007 11:07, Matthew Wilcox wrote:
>sed -i -e 's/^\t*      \(\w*:\)/ \1/' "$@"
>
>Any regexp ninjas want to have a go at something better?

You want \w+.

[ perl -i -pe 's/^\t* {6}(\w+:)/ $1/' "$@"
  Whether that is "better" depends on the user who uses it :) ]



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ