Re: scary ext2 filesystem question

Raul Miller (rdm@test.legislate.com)
Fri, 1 Jan 1999 02:44:14 -0500


Zlatko Calusic <Zlatko.Calusic@CARNet.hr> wrote:
> It's tedious job after that, to go and delete those unwanted zeroes
> from the files, and I would be much happier if FS would indeed behave
> like you're saying (lose here and there, but do NOT corrupt data).

It needn't be tedious:

perl -ni -e 'print unless /\0/' filenames...

[This assumes that no null characters should show up in those files].

-- 
Raul

- 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/