Posts tagged with ‘bash’

How to loop thru directory files in bash shell

advertisement

mac, linuxIf you need to write a bash script that loop thru directory, then here’s the solution. While writing this bash script to loop thru directory files, i learn something more about single and double quote. So make sure you dont add any double quotes or single quotes to your path when you follow the tutorial below.

To loop thru directory files in bash shell, follow the steps below:-

Continue reading How to loop thru directory files in bash shell »

How to check if directory exists in Bash script

advertisement

linuxJust wrote a script in bash shell that need to check if directory exists, else create the directory. I always need to write script that check the if a directory exists but i always forget :p. So i think it’s better for me to put this down for my later reference 🙂

To check if directory exists in bash shell script, check the command below:-

Continue reading How to check if directory exists in Bash script »

How to delete all .svn folder in Linux / Mac?

advertisement

Few days ago, i’m looking for way to delete all the .svn folder. Today i found the way to delete all .svn folder from my project folder in Linux.

To delete all .svn folder in Linux just follow the steps below:-

Continue reading How to delete all .svn folder in Linux / Mac? »