Modifying shell scripts