GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting

 Print  |  
Question:  Shell script

Answer: You have current directory containing set of directories which contain files.
One file can reside in many directories.
Write script which returns number of unique file names in
all the subdirectories of a current dir.


February 02, 2009 19:12:20 #2
 sesethi   Member Since: October 2008    Total Comments: 3 

RE: Shell script
 

Shell script accepts parameters in following format…

$1 would be the first command line argument, $2 the second, and so on

$0 is the name of the script or function

If your script has more than 9 params then accept in following way…

${12} : 12th param

${18} : 18th param

     

 

Back To Question