您的位置:首页 > Web前端

What is the difference between wc -1 < mydata.dat and wc -1 < mydata.dat ?

2016-11-04 19:43 555 查看
What is the difference between
wc -1 < mydata.dat
and
[b]
wc -1 < mydata.dat
?[/b]To output the number of lines in the
mydata.dat
file, we use the
wc -1 mydata.dat
command.By adding
<
to create the command
wc -1 < mydata.dat
, the program opens and reads from the
mydata.dat
file to process the line count. The program sends the contents of
mydata.dat
to
wc
's standard input. This is referred to asredirecting input.
wc -1 < mydata.dat
The output of
wc -1 < mydata.dat
is 48That of
wc -1 < mydata.dat
is
 48 config.dat
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: