ffilt - Filter a file via a command's STDIO and write back to the file


NAME

ffilt - Filter a file via a command's STDIO and write back to the file


SYNOPSIS

ffilt FILE COMMAND [ARGS]


DESCRIPTION

Feed FILE into COMMAND's stdin, then save its stdout back to FILE if COMMAND ran successfully.

ffilt(1) is a quasi shorthand for this shell construct:

 output=`cat FILE | COMMAND`
 [ $? = 0 ] && echo "$output" > FILE


LIMITATIONS


SEE ALSO

sponge(1), insitu(1) https://github.com/athas/insitu

 ffilt - Filter a file via a command's STDIO and write back to the file