bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new feature request for "split" command


From: Miroslaw Osys
Subject: new feature request for "split" command
Date: Fri, 4 Apr 2008 22:23:58 +0200

Hello,

I read at website:
  http://www.gnu.org/software/coreutils/
the new features can be requested.

Recently I did some computations on machine
with whole system booted into ramdisk.
Due to lack of storage other than RAM, I only could do:

  big-output-prog | split -b100m

and copy [to another machine] each part as soon it is finished, then remove 
this part.
So I need constantly watching contents of the directory and
maybe sometimes I cannot do it fast enough.

My idea is option for printing message by "split" when part is finished.
It could be used by script to execute some action.
Honoring "xargs" command it could be named "-x" and string '{}' can have 
special meaning as in xargs.
 
I could execute:

  big-output-prog | split -b100m -x "scp {} address@hidden; rm {}" | sh

provided that scp is configured not to expect passwords each time.
So every part would be transferred and removed immediately.

Alternatively "-x" can be non argument option, always printing name of the 
part. Then we could use xargs for obtaining "scp ...".

I understand the implementation can use different interface to obtain similar 
functionality.

I coded my own split (-b only) with this behavior but it would be nice to have 
this as standard in systems equipped with GNU coreutils.

Best regards,
Miroslaw


reply via email to

[Prev in Thread] Current Thread [Next in Thread]