System Software Lab Programs ( UNIX Programs ) – 5a
// June 5th, 2009 // Educational, Unix and System Software Lab
Subject : System Software Laboratory
Branch : Information Science & Engineering
Semester : 6
University : VTU
[Click Here to get other programs by email ]
………………………………………………………………………………………………………………………….
PART -B
………………………………………………………………………………………………………………………….
5. a) Shell script that accepts path names and creates all the components in that pathnames as directories. For example, if the script name is
mpe, then the command mpe a/b/c/d should create directories a, a/b, a/b/c, and a/b/c/d.
v1=`echo $* |tr “/” ” “`
echo $v1
for i in $v1
do
mkdir $i
cd $i
done



