Jump to content
  • Advertisement

netresearch

Member
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

122 Neutral

About netresearch

  • Rank
    Newbie
  1. This is shell script I have made to lists out directory contents and filenames for any given directory (without using ls command). There is some problem in dirfunc function call which I have marked 1 is not working. Can anybody suggest what is the problem there and how should I correct it. dirfunc() { path=$1/$2 if test -d $path then echo "--------------------------------------------------------------------------------" dir=Sub-$3 echo " $dir: $path " dir $path > inven declare -a no awk 'BEGIN{ t = 0} { { for(i=1 ; i<=NF ; i++) { no[t+$i] = $i dirfunc $path no[t+$i] $dir _____________________(1)not working } t = t + NF } }' inven echo "--------------------------------------------------------------------------------" else if test -f $path then echo " $2 : File in $dir " fi fi } dirfunc /users/mti2007/apakhale/Desktop demodir.d Directory
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!