Welcome to the Rockbox Technical Forums!
#!/bin/bashdest="smushed"mkdir "$dest"i=0for infile in *; do if [ -e "$outfile" ]; then if [ $(expr $(stat -c "%s" "$outfile") + $(stat -c "%s" "$infile")) -gt 32768 ]; then i=$(expr $i + 1) fi fi outfile="$dest/wiki$(printf "%010d" $i).txt" # can't really think of a good naming scheme cat "$infile" >> "$outfile" echo -e "\n\n\n\n\n" >> "$outfile" # give us some vertical space between articlesdone
Page created in 0.093 seconds with 15 queries.