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
Go To First  |  Previous Question  |  Next Question 
 Shell Scripting  |  Question 39 of 44    Print  
Shell script
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.



  
Total Answers and Comments: 1 Last Update: May 14, 2008     Asked by: Namataraginu 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rps1007
 
"ls -R|sort|uniq"  should work

Above answer was rated as good by the following members:
dph1007
May 12, 2008 07:23:52   #1  
rps1007 Member Since: May 2008   Contribution: 2    

RE: Shell script
"ls -R|sort|uniq"  should work
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : by using  :                 exec

Latest Answer : Broadly categorised in 3 for  while until ...

Latest Answer : global variable is created using export command in ksh - export x='name' In csh its created using setenv command-setenv x 'name'this 'x' variable will be visible in current shell as well as in child shell also.local variable ...

If you have a string "one two three", Which shell command would you use to extract the strings?

When you login to a c shell, which script would be run first? (before the terminal is ready for the user)

Latest Answer :  sed -n '25,25p' Filenameor head -25 filename | tail -1  ...

Latest Answer : in shell we cannot edit the text whereas in the editor it is possible to edit the text ...
Read Answers (5) | Asked by : chitrabanu

Latest Answer : echo enter a string read stringlen=`expr length "$string"`i=$lenreverse=''while [ $i -gt 0 ]dochar=`echo $string | cut -c $i`reverse="$reverse$char"i=`expr $i - 1`doneecho string:$stringecho reverse:$reverseif [ $reverse = ...

Latest Answer : To connect to sybase, write this in the command line:isql -Sservername -Uusername -Ppassword1>use database2>gowhen you're done, just type quit.Although i don't recommend using the -P option as other people might see your password. ...
Read Answers (6) | Asked by : Brahma Reddy Thatiparthi

Latest Answer : It gives the environment or the shell in which your script would be run ...
Read Answers (5) | Asked by : Max


 Sponsored Links

 
Related Articles

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Operating Systems and IT Certification

With the burst of information technology that is becoming a part of the dominant culture throughout the world, are programs that are designed to help those in this area to grow in knowledge.  By understanding the different technologies that are available, one is able to use them and impleme
 

Server Side Scripting

Server Side Scripting Client Side Programming In web applications client side programming is usually written in HTML meanwhile the application servers the middle tier in three tier client server architecture are usually written in C or Java By using a scripting language embedded in HTML web servers
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape