mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 03:29:41 +01:00
Add Shell script to sort file content
This commit is contained in:
parent
30f4a00e3b
commit
e99161f3ac
6
src/tools/shhelpers/sort_file_content.sh
Normal file
6
src/tools/shhelpers/sort_file_content.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# That script sort the content of all files in the current directory
|
||||
#
|
||||
ls | grep -v .sort | while read file; do sort "$file" > "$file".sort; done
|
||||
for file in *.sort; do mv "$file" "${file%%.sort}"; done
|
Loading…
Reference in New Issue
Block a user