On Tuesday, January 6, 2015 9:26:54 AM UTC-6, Felix.Frank wrote:
>
> How about avoiding the awful bashisms altogether?
>
> cat /home/weblogic/{javafoundmodified,authorizedjava}.txt
> | sort
> | uniq -u
> | tee ...
>
> That should make it easier on your Ruby.
>
Nice one. That probably does the job, but do note that it is not an exact
equivalent -- it doesn't do the same thing if one file contains duplicate
lines, and the other doesn't have any matching one. Supposing it is
acceptable to assume that situation will not arise, yours is cleaner, and
probably doesn't require being wrapped in bash -c.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6bebd15d-28f7-4ed3-a944-47d81b95ce52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.