dotfiles/scripts/split-text-files-in-parts.sh

4 lines
164 B
Bash
Executable File

#!/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."