Enter your email address & Win:

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

[Click Here to get other programs by email ]


If you enjoyed this post, make sure you subscribe to my RSS feed!

Related posts:

  1. System Software Lab Programs ( UNIX Programs ) – 4a
  2. System Software Lab Programs ( UNIX Programs ) – 6a
  3. System Software Lab Programs ( UNIX Programs ) – 7a
  4. System Software Lab Programs ( UNIX Programs ) – 3a
  5. System Software Lab Programs ( UNIX Programs )
blog comments powered by Disqus

Top Commentators

Get Adobe Flash playerPlugin by wpburn.com wordpress themes