8 lines
168 B
Bash
8 lines
168 B
Bash
|
#!/bin/bash
|
||
|
# Sort all ignore files in place and remove duplicates
|
||
|
for f in .*ignore; do
|
||
|
if [ ! -L "$f" ]; then
|
||
|
sort --mmap --unique --output="$f" "$f"
|
||
|
fi
|
||
|
done
|