File: recursive_dir

package info (click to toggle)
libwn6 6.0-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,996 kB
  • ctags: 3,938
  • sloc: ansic: 45,083; makefile: 924; csh: 274; sh: 12
file content (19 lines) | stat: -rwxr-xr-x 270 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#/bin/csh -f

set nonomatch

set command = "$1"

echo "@@@@@ "`pwd`
$command

foreach file (*)
  if ( ( $file != "") && ( $file != "*" ) ) then
  if ( -d $file ) then
    pushd $file >& /dev/null
      recursive_dir "$command"
    popd >& /dev/null
  endif
  endif
end