Klein, Roger wrote: > Hi, > > Now I found a hint on the Web > (http://www.programmersheaven.com/mb/linux/187697/245244/re-how-to-chang > e-filesize-in-linux/?S=B20000)
using `cut` to remove both truncate and "unsparse" files is both inefficient an buggy. From the cut man page: "cut - remove sections from each line of files" The important word here is _line_ I.E. if there are any \n characters in the file then the byte counts will be reset and you'll get a bigger file than expected. I suggest you do: head --bytes=58101760 boot_image.clone2fs > boot_image.clone2fs_correct cheers, Pádraig. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
