Write a shell script that accepts a path name and creates all the components in that path name as directories. For example, if the script is named mpc, then the command mpc a/b/c/d should create directories a, a/b, a/b/c, a/b/c/d.VTU MCA UNIX LAB2
var=`echo $1 | tr "/" " "` for x in $var do mkdir $x
No comments:
Post a Comment