#!/bin/bash # split all files in current dir in 20 even sized parts -> only works for text files for filename in *; do split -n l/20 -d "$filename" "$filename."