Re: logging and mutualise outputs
Laurent Bercot:
> for logdir in `cat logdir_list` ; do (cd $logdir && cat *.s *.u
> current) ; done | sort > logfile
>
find `cat logdir_list` -maxdepth 1 -type f \( -name '*.[su]' -o -name
current \) -print0|xargs -0 sort -m -- > logfile
sort can do a merge sort directly from the original files, which are of
course already sorted. It's better when one's logs are *big*.
Received on Fri Jun 03 2016 - 22:17:55 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC