What is the difference between wc -1 < mydata.dat and wc -1 < mydata.dat ?
来源:互联网 发布:章鱼彩票安全吗 知乎 编辑:程序博客网 时间:2024/06/10 05:21
What is the difference between wc -1 < mydata.dat
and wc -1 < mydata.dat
?
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 themydata.dat
file to process the line count. The program sends the contents ofmydata.dat
to wc
's standard input. This is referred to asredirecting input.
wc -1 < mydata.dat
The output of wc -1 < mydata.dat
is 48
That of wc -1 < mydata.dat
is
48 config.dat
0 0
- What is the difference between wc -1 < mydata.dat and wc -1 < mydata.dat ?
- What is the difference between test, [ and [[ ?
- what is the difference between the setTimeout and setInterval
- What is the difference between DHTML and the DOM?
- What is the difference between the mouseover and mouseenter events?
- What is the difference between AWT and SWT?
- What is the difference between User Control and Custom Control?
- What is the difference between an EXE and a DLL?
- What is the difference between XML and C or C ?
- What is the difference between SMOD and CMOD?
- what is the difference between little-endian and big-endian.
- What is the difference between procedural and nonprocedural language?
- What is the difference between a thread and a process?
- What is the difference between objectForKey and valueForKey?
- What is the difference between Microsoft TMG and UAG ?
- What is the Difference Between http and https?
- what is the difference between ELF files and bin files
- what is the difference between MirrorView, SanCopy, SanpSure and SnapView
- 句子引发的血案-第四天
- Flex
- 多线程实现生产者消费者
- eclipse 中新建的Dynamic Web Project 中无web.xml&&web.xml中Servlet的配置问题
- NS-3教程(2):NS-3简单介绍
- What is the difference between wc -1 < mydata.dat and wc -1 < mydata.dat ?
- poj3579(二分求解第k小/大值)
- 一天一条Linux指令-curl
- tjut 5914
- U盘文件夹变成快捷方式解决方案
- linux进程通信-消息队列
- 使用Volley三级缓存机制优化ListView加载图片
- 【Yar】Yar异步调用的超时时间问题以及解决方案
- Linux C基础2