From 29c1233be8d029e891ada9abdfb4d10d31e23a7f Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Wed, 23 Dec 2015 00:24:29 +0100 Subject: Split argument list to cat in handy 128 file chunks --- makecolumns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makecolumns.sh b/makecolumns.sh index 8b14dd7..55f23f4 100755 --- a/makecolumns.sh +++ b/makecolumns.sh @@ -203,7 +203,7 @@ handle_format_version_3() { printf "done.\n" printf "Splitting decompress vname chunks into their columns ... " - JOT "%0${filename_len}d" ${vname_file} $(( number_of_files - 1 )) 3 | xargs cat | tr '\n\0' '\t\n' | tr -d '\377' > 03_Vorname + JOT "%0${filename_len}d" ${vname_file} $(( number_of_files - 1 )) 3 | xargs -n 128 cat | tr '\n\0' '\t\n' | tr -d '\377' > 03_Vorname printf "done.\n" printf "Splitting decompress table file chunks into their columns ... " @@ -300,11 +300,11 @@ handle_format_version_4() { printf "done.\n" printf "Splitting decompressed chunks into their columns (11 total) ... 1, " - JOT "file_%05X" 0 $(( rows - 1 )) 11 | xargs cat | xxd -ps -c1 > column_0 + JOT "file_%05X" 0 $(( rows - 1 )) 11 | xargs -n 128 cat | xxd -ps -c1 > column_0 for col in 1 2 3 4 5 6 7 8 9 10; do printf "%d, " $(( col + 1 )) - JOT "file_%05X" ${col} $(( rows - 1 )) 11 | xargs cat | tr '\n\0' '\t\n' > column_${col} + JOT "file_%05X" ${col} $(( rows - 1 )) 11 | xargs -n 128 cat | tr '\n\0' '\t\n' > column_${col} done printf "done.\n" -- cgit v1.2.3