Saturday, July 26, 2014

find command in linux/unix

  1. Use the find command to find the file new.config.
    
         find . -name new.config -print
         
  2. Now use the find command to find all files with "file" as part of their name. Don't forget to put the wildcard specification in quotes - it won't work otherwise:
    
         find . -name 'file*' -print
         
  3. Try to find only directories with "file" as part of their name. Are there any?
    
         find . -name 'file*' -type d -print
         

Reactions:

0 comments:

Post a Comment