How can we write a C shell script to make Dirs, and subdirs, and help file in each subdirs?
someone said have to use FOREACH loop, but I don't really understand the function and instruction of Foreach.
any example will be helpful.
Printable View
How can we write a C shell script to make Dirs, and subdirs, and help file in each subdirs?
someone said have to use FOREACH loop, but I don't really understand the function and instruction of Foreach.
any example will be helpful.
this was one of the oldest DOS Attack
for ever
mkdir something
cd something
actually a directory takes some place 512 bytes i think so after few hrs u r screwed
The variable var is successively set to each member of wordlist. Members of the wordlist are space seperated.Code:foreach var (wordlist)
# Commands
end
Example:The wordlist may also include wildcards:Code:#!/bin/csh
foreach color (red orange yellow green blue)
echo $color
end
HTH,Code:#!/bin/csh
foreach file (*)
cat file
end
thank you
that's some help