Find the answer to your Linux question:
Results 1 to 2 of 2
Dear All, My manager askmed me to find out all the jpg files in a directory and copy to another destination directory.I tried to write a shell script.But the problem ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    13

    Shell Script to search and copy jpg to Another Folder.

    Dear All,
    My manager askmed me to find out all the jpg files in a directory and copy to another destination directory.I tried to write a shell script.But the problem is this source directory contains thousands of subdirectories.The jpg files resides in all of these directories.We have to search inside all these sub directories.I am reallyconfused.Can Any one help me.I am only a beginner to Shell scripting.Thanking YoU

  2. #2
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Use 'find' command. Now its upto you to read the manpage for syntax, get the work done and make your manager happy.
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...