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

4 lines
164 B
Bash
Raw Normal View History

2023-07-24 09:40:35 +02:00
#!/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."