![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl - converting selected characters to upper/lower case | doubleminus | UNIX for Dummies Questions & Answers | 2 | 05-19-2008 01:13 AM |
| Accepting Upper and Lower case | lweegp | Shell Programming and Scripting | 8 | 12-08-2007 06:57 PM |
| UNIX command to reverese lower and upper case | rfourn | Shell Programming and Scripting | 6 | 12-07-2007 10:33 PM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-29-2002 12:07 AM |
| Upper And Lower Case | pciatto | Shell Programming and Scripting | 1 | 04-29-2002 12:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
copy "cp" command how distinquish upper/lower case
hello,
i thought this should work to specify that i want to "cp" all files no matter what the case, ie upper or lower, as i have 2 files called Makefile and mak cp -i mak* but apparently the -i isn't a valid option like it is with grep thanks for any suggestions! bobk |
|
||||
|
You need to understand who is doing the expanding. In your case "-i" goes to the command "cp" but "mak*" is expanded directly by the shell.
cp does support the -i option as follows Code:
-i Causes cp to write a prompt to the standard error output before
copying a file that would overwrite an existing file. If the
response from the standard input begins with the character `y', the
file copy is attempted.
Try Code:
cp [mM]ak* tgt |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|