Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: gsflash80
1,201
Posted By ahamed101
dirs=(MSSQL SQL\ SERVER SQLSERVER ABC) ...
dirs=(MSSQL SQL\ SERVER SQLSERVER ABC)
for((i=0;i<${#dirs[@]};i++))
do
printf "${dirs[$i]} ";
test -d "${dirs[$i]}" && echo exists || echo "does not exist"
done

--ahamed
2,922
Posted By Subbeh
no need to escape the space. Just do test=$(pwd)...
no need to escape the space. Just do test=$(pwd) and cd "$test"
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 04:32 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy