LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i need to copy files from one folder to another folder using shell (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-to-copy-files-from-one-folder-to-another-folder-using-shell-793129/)

smoker 03-04-2010 08:23 AM

Quote:

Originally Posted by MTK358 (Post 3885478)
I am not saying that "extensions" are not used, I am saying that the Unix operating system itself does not have such a concept (they are just used for user convenience, and some programs may require them), and that unlike Windows, Unix filenames are allowed not to have an extension, so *.* will not match all files.

Rubbish.
Try it yourself.
* matches all files
*.* matches all files with a name, a . and following text.
You don't necessarily need *.*, just * but it doesn't stop the command working.

http://www.psc.edu/general/unix/wildcards.php

MTK358 03-04-2010 08:44 AM

Quote:

Originally Posted by smoker (Post 3885512)
Rubbish.
Try it yourself.
* matches all files
*.* matches all files with a name, a . and following text.
You don't necessarily need *.*, just * but it doesn't stop the command working.

http://www.psc.edu/general/unix/wildcards.php

I know that "*.*" is valid in BASH and that it will match all files with a dot in the name.

But I assume that the OP meant all files, not only the ones that have a dot in them. And because of the low post count, I assume that the OP thought all filenames had a dot in them because he is used to Windows.

smoker 03-04-2010 09:07 AM

Judging by the text2sound directory name, I am guessing he's using festival or something similar.
An example from the Festival docs:
text2wave myfile.txt -o myfile.wav

Until he posts a listing of the relevant directories, we are all just guessing.


All times are GMT -5. The time now is 09:34 PM.