Change permissions to all files in any directory

travelly-project

Change the permissions in any given directory

#!/bin/bash
total=`ls -l /home/bill/Documents/* | wc -l`
echo It will take $total seconds to assign permissions...
echo
for i in /home/bill/Documents/*
do
echo Assigning write permissions to $i
chmod a+w $i
sleep 1
done