Find if a directory exists in a gawk script
Hi,
I try to find out if a directory exists before executing a cp. It tried with if (-d $dirname) but it is not working. Can you help me? Thank you. Duparcmeur |
if [ -d $i ];
then echo " folder exists" else echo " folder does not exits " fi or if it escapes out you can try it with, find . -type d -print Gentoo |
In gawk you can do something like this, using "getline into a variable from a coprocess"
Code:
BEGIN { DIR = "dirname" |
All times are GMT -5. The time now is 02:57 PM. |