mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 02:25:03 +08:00
e7d848266a
The regular expression worked for version numbers such as 1.42.12, but not if there isn't a third component in the version number. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
30 lines
900 B
Sed
30 lines
900 B
Sed
/^debugfs [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^dumpe2fs [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^e2fsck [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^mke2fs [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^resize2fs [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^tune2fs [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
/^e2image [1-9]\.[0-9]*[^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
s/\\015//g
|
|
/automatically checked/d
|
|
/^Directory Hash Seed:/d
|
|
/Discarding device blocks/d
|
|
/^Filesystem created:/d
|
|
/^Filesystem flags:/d
|
|
/^Filesystem UUID:/d
|
|
/^JFS DEBUG:/d
|
|
/^Last write time:/d
|
|
/^Last mount time:/d
|
|
/^Last checked:/d
|
|
/^Lifetime writes:/d
|
|
/^Maximum mount count:/d
|
|
/^Next check after:/d
|
|
/^Suggestion:/d
|
|
/Reserved blocks uid:/s/ (user .*)//
|
|
/Reserved blocks gid:/s/ (group .*)//
|
|
/whichever comes first/d
|
|
/^ Checksum /d
|
|
s/, csum 0x\([0-9a-f]*\)//g
|
|
s/ csum 0x\([0-9a-f]*\)//g
|
|
/^Checksum:/d
|