You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
406 B
12 lines
406 B
#!/bin/sh |
|
|
|
# This spell allows you to cast a magic spell on all the files in the current directory. Simply provide the spell as |
|
# an argument, and it will be cast on each file in turn. |
|
# |
|
# Use this spell to perform powerful magic on all your files at once (or to simply perform a batch operation on |
|
# multiple files). |
|
|
|
for file in ./*; do |
|
echo "${file#./}" |
|
"$@" "$file" | awk '{print " " $0}' |
|
done
|
|
|