2021-05-31 11:04:50 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2023-05-21 16:08:00 +02:00
|
|
|
cd "$HOME/GitProjects/configs/arch-setup/packages/"
|
2021-05-31 11:04:50 +02:00
|
|
|
|
2023-05-21 16:08:00 +02:00
|
|
|
readarray -d '' packagefiles < <(find "$HOME/GitProjects/configs/arch-setup/packages/" -name "*\.txt" -print0)
|
2021-05-31 11:04:50 +02:00
|
|
|
|
|
|
|
for file in "${packagefiles[@]}"; do
|
|
|
|
echo "Sorting $file"
|
2023-05-21 16:08:00 +02:00
|
|
|
cat "$file" | sort >"${file}.tmp" && mv "${file}.tmp" "$file"
|
2021-05-31 11:04:50 +02:00
|
|
|
done
|