![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Management: How do I move all JPGS in a folder structure to a single folder? | guptaxpn | Shell Programming and Scripting | 4 | 06-11-2009 03:41 AM |
| How can I upload a zip folder on a unix path from my windows folder? | ajit.yadav83 | Windows & DOS: Issues & Discussions | 2 | 01-29-2009 08:56 AM |
| Auto copy for files from folder to folder upon instant writing | Bashar | UNIX for Advanced & Expert Users | 2 | 08-21-2008 03:44 PM |
| create folder in windows from unix while FTP | Metalero de Oz | UNIX for Dummies Questions & Answers | 0 | 05-14-2008 02:22 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to create folder and sub-folder in UNIX ?
Hi all, I have the following code to check the whether the folder is exist in my system. Code:
if [ -d /home/batch/testing ]; then echo 'folder exist'; else echo 'folder not exist'; mkdir /home/batch/testing ; fi When I remove the "testing" folder from "/home/batch" directory, the code is working fine. But when I remove folder "/batch/testing" from "/home" directory, the code is not working. Actually I want to test whether the code is able to create directory "/batch/testing" in "/home" folder. Anybody know how to do that? thanks .. ![]() ---------- Post updated at 11:03 PM ---------- Previous update was at 11:01 PM ---------- The error message I get is /home/batch: A file or directory in the path name does not exist. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|