RFC

Oct 19, 2009 10:41

 Am I right that

rysnc -v [somefiles] | grep [some criteria] >> [some file]

wont change the way rsync works, just what is done with standard output? Specifially take the entre verbose (-v) output, filter it by my criteria, and append the filtered output to my file?

(Yes, I COULD set up a test set of files and run a trial. And I probably will.)

Leave a comment

Comments 2

greg_kennedy October 19 2009, 21:00:27 UTC
It should work exactly as described. Though do remember >> is "append" not "overwrite" so make sure that's what you meant to do.

Reply

life_unexamined October 19 2009, 21:16:32 UTC
Thanks for the double-check ... that's exactly what I intend.

FWIW, rsync -v [somefiles] >> [some file] works great, I'm just trying to add a step to filter out all the lines reflectingeach folder level touched. So the grep will feature the not flag (don't remember what it is right now, will look up), and look for a "/" anchored at the end of the line ... that way it'll only capture those lines that end with a file.

Reply


Leave a comment

Up