חדשות

During each run of the loop, the mv command is used to move the file from firstdir to seconddir. The script then echoes the file name back to standard output.
Bash scripting is every Linux administrator's Swiss Army knife. Learn how using a for-loop in conjunction with Bash scripts can produce powerful results.