linux-tutorial/codes/demos/bash/statement/forDemo02.sh

7 lines
90 B
Bash

#!/usr/bin/env bash
for FILE in $HOME/; do
mv "$FILE" "./"
chmod +x "./${FILE}"
done