Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env bash
- find . -maxdepth 1 -type d -name '[P|B|T]*' | while read dir;
- do
- echo "Working on Directory: " $dir;
- clean=$(echo $dir | sed 's/[^a-zA-Z]//g');
- if [ $clean != "PHP" ];
- then
- cleanandlow=$(echo $clean | tr '[:upper:]' '[:lower:]');
- cp PHP/php $dir/$cleanandlow;
- fi
- if [ ls -la $clean ];
- then
- ls -la $clean;
- fi
- if [ ls -la $dir ];
- then
- ls -la $dir;
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement