LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy multiple files to multiple directories (https://www.linuxquestions.org/questions/linux-newbie-8/copy-multiple-files-to-multiple-directories-4175445078/)

David the H. 01-22-2013 10:17 AM

Well, I'm not getting anything like that.

If I use "ls <&8" I get the contents of PWD, and if I use "ls <8&" I get a no such file or directory error, due to the incorrect syntax, or the PWD again if a file named "8" exists.

Again, the redirect sets up stdin for the command, but ls ignores stdin, so it runs as if there are no arguments.

Interestingly, I wasn't aware that directories could be used as the targets of fds, although I can't see how much good that would do. I don't know of any commands that can accept non-file input from stdin.

Are you using a different shell of some kind perhaps?


All times are GMT -5. The time now is 12:12 AM.