Thursday 9 April 2015

Shell script to Create multiple folders on Unix server


Shell script to Create multiple folders on Unix server:-

Suppose I am giving it name abc.sh...Inside abc.sh is

#!/bin/bash
#exec >

/u01/psoft/XXXX/XXXX/interface/InterfaceDirectory.log 2>&1
set -x

mkdir ./pc123a
mkdir ./pc123a/doc
mkdir ./pc123a/doc/archive
mkdir ./pc1234a/erm

Place it in the place where you want to create folders and execute.
./abc.sh

No comments:

Post a Comment

The purge process did not run because the Oprid configured to start the Process Scheduler did not have the required permissions to run the purge process.

  Purge process - Required permissions The PeopleSoft Oprid used to start the Process Scheduler, as defined in the Scheduler's psprcs.cf...