file1 $ printf "111" />
![]() |
|
|
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 |
| inline redirect stdin | ct2marer | UNIX for Advanced & Expert Users | 2 | 09-09-2008 10:50 PM |
| inline redirect stdin | ct2marer | Shell Programming and Scripting | 5 | 09-09-2008 10:50 AM |
| Redirect stdin and out to sockets | gyula | High Level Programming | 1 | 09-02-2008 11:30 AM |
| redirect STDIN | prkfriryce | Shell Programming and Scripting | 4 | 01-04-2007 10:11 AM |
| stdin not tty when try to pine or redirect | Micz | UNIX for Dummies Questions & Answers | 1 | 05-20-2004 03:58 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Cannot redirect to STDIN in a shell script
I am unable to use STDIn redirection with < (commands) When I do the following, both approaches work and give the same results: 1. Code:
$ printf "aaa\nbbb\n" > file1 $ printf "111\n222\n" > file2 $ cat file1 file2 aaa bbb 111 222 2. Code:
$ cat <(printf "aaa\nbbb\n") <(printf "111\n222\n") aaa bbb 111 222 However, the second approach won't work when I put in in a script. I am using Cygwin1.5.25-15 Any clue? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|