![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find files ONLY in current directory | gio001 | Shell Programming and Scripting | 8 | 06-19-2009 06:58 AM |
| Finding files in current directory when 100,000's files in current directory | kewong007 | Shell Programming and Scripting | 2 | 02-26-2009 03:13 PM |
| List files that are not directories from current directory | beni22sof | UNIX for Dummies Questions & Answers | 2 | 01-06-2009 03:44 PM |
| Recursive call to find files and directories in Shell script from current path. | Ramit_Gupta | Shell Programming and Scripting | 2 | 10-07-2008 04:33 AM |
| searching content of files in the current and sub directories | tiger99 | Shell Programming and Scripting | 4 | 01-23-2008 03:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
mget * (obtein files from current directory but not the files form sub-directories)
Hello,
Using the instruction mget (within ftp) and with "Interactive mode off", I want to get all files from directory (DirAA), but not the files in sub-directories. The files names don't follow any defined rule, so they can be just letters without (.) period Directory structure example: $ find DirAA -name "*" DirAA DirAA/FILE_AA_01 DirAA/FILE_AA_02 DirAA/DirBB DirAA/DirBB/FILE_BB_01 ftp> mget * local: DirBB/FILE_BB_01 remote: DirBB/FILE_BB_01 DirBB/FILE_BB_01: No such file or directory With the instruction "mget *" the (* asterisk) is expanded also for the files on the sub-directories. The files from the sub-directories are not copied, but will originate errors on the log. So anyone knows if with “mget *” there is a way to get only the files on the current directory, not the files on the sub-directories? |
![]() |
| Bookmarks |
| Tags |
| ftp;mget |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|