由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Question about I/O redirection.
相关主题
what's wrong with this ftp batch file?[转载] Hidden character in a file
magnetic tape?some useful (hopefully) sed command
How to use line type in GnuPLot?can anyone post a FTP auto get script ?
问一个关于at的问题双面打印
请教How to get rid of the bg job id redirection?help on job control commands
unix下编译fortran 的错误太多,看不到怎么办?wait on line: simple question
请诊断:能这样么?
再次急问: *.tgz 文件怎么解?Socket programming help
相关话题的讨论汇总
话题: question话题: cfpost话题: input话题: set
进入Unix版参与讨论
1 (共1页)
x***i
发帖数: 12
1
I think most of us are familiar with < , >
but can you tell me how to use << ?
I check 2 book but can't get clear answer :(
I just want to run a command but I don't want to input from a file.
For example.
cfpost {cfpost is an application program}

the content of input.txt is the input sequence shown as follows:
1 {open some kind of file}
11 {select some kind of parameter}
4
m*****e
发帖数: 4193
2
there is no <<

【在 x***i 的大作中提到】
: I think most of us are familiar with < , >
: but can you tell me how to use << ?
: I check 2 book but can't get clear answer :(
: I just want to run a command but I don't want to input from a file.
: For example.
: cfpost : {cfpost is an application program}
:
: the content of input.txt is the input sequence shown as follows:
: 1 {open some kind of file}

x***i
发帖数: 12
3
The book I am reading now shows there is construct like
< , >, >| , >> , << , <& and so on.
Maybe it is depend on different shell?
Or anyway, any method which can get input from line directory?

【在 m*****e 的大作中提到】
: there is no <<
x***i
发帖数: 12
4
There did exit <<
For example, for my question below:
You can run as :
cfpost < 1
11
4
0
test
work done. Pay attention that there must be 2 test.
And test is any word you select but much appear in couple(two times)

【在 x***i 的大作中提到】
: I think most of us are familiar with < , >
: but can you tell me how to use << ?
: I check 2 book but can't get clear answer :(
: I just want to run a command but I don't want to input from a file.
: For example.
: cfpost : {cfpost is an application program}
:
: the content of input.txt is the input sequence shown as follows:
: 1 {open some kind of file}

m*****e
发帖数: 4193
5
that's different.

【在 x***i 的大作中提到】
: There did exit <<
: For example, for my question below:
: You can run as :
: cfpost <: 1
: 11
: 4
: 0
: test
: work done. Pay attention that there must be 2 test.

l*l
发帖数: 225
6
"<<" only using in a script as a "Note" for input.
Like, if you using gnuplot to plot a pic, you usually in interact method,
but sometime you want save time or for a batch process,
you can use that:
sample.sh
#!/bin/sh
gnuplot << _EOF_ ### Note, input start here.
set xlable
set ylable
set zlable
set output '/lul/physics/DEC/pythia/work/plot/new.ps'
set terminal postscript landscape noenhanced monochrome dashed "Helvetica" 14
set size 1,1
set title ''
set key right top Right noreverse samplen

【在 x***i 的大作中提到】
: I think most of us are familiar with < , >
: but can you tell me how to use << ?
: I check 2 book but can't get clear answer :(
: I just want to run a command but I don't want to input from a file.
: For example.
: cfpost : {cfpost is an application program}
:
: the content of input.txt is the input sequence shown as follows:
: 1 {open some kind of file}

o**a
发帖数: 86
7
the same as that in perl

【在 x***i 的大作中提到】
: The book I am reading now shows there is construct like
: < , >, >| , >> , << , <& and so on.
: Maybe it is depend on different shell?
: Or anyway, any method which can get input from line directory?

1 (共1页)
进入Unix版参与讨论
相关主题
Socket programming help请教How to get rid of the bg job id redirection?
How to set font for X apps?unix下编译fortran 的错误太多,看不到怎么办?
How to use the command history in SUN?请诊断:
Re: paper size problem of postscript file再次急问: *.tgz 文件怎么解?
what's wrong with this ftp batch file?[转载] Hidden character in a file
magnetic tape?some useful (hopefully) sed command
How to use line type in GnuPLot?can anyone post a FTP auto get script ?
问一个关于at的问题双面打印
相关话题的讨论汇总
话题: question话题: cfpost话题: input话题: set