View Single Post

  #3 (permalink)  
Old 12-07-2007, 07:13 PM
anilvrathod's Avatar
anilvrathod anilvrathod is offline
Junior Member
User
 
Join Date: Dec 2007
Location: Pune
My distro: Red Hat
Posts: 13
Rep Power: 0
anilvrathod is on a distinguished road
Lightbulb

Dear Friend I am sending two script for diffrent purpost
script for create empty file
vi create empty file
#!/bin/bash
path="/path_where_u_want_to _create "

echo "Enter Count "
read COUNT

for (( i = 0 ; i <= $COUNT; i++ ))
do
touch $path"New_file_name{i}.txt"
done


Script for Create Durectory

vi createdir.sh
#!/bin/bash
path="/Path--------"

echo "Enter Count "
read COUNT

for (( i = 0 ; i <= $COUNT; i++ ))
do
mkdir $path"Directy_name${i}."
done


Anil V.Rathod
Linux System Administrator
Kalinga Data Link Pvt.Ltd Pune
Cell No. 9860062917
Reply With Quote