Standard Input/Output and I/O Redirection


[root@server1 ~]# who > users
[root@server1 ~]# cat users
root     pts/1        2011-04-12 17:29 (192.168.1.2)
root     pts/2        2011-04-12 18:20 (192.168.1.2)

[root@server1 ~]# wc -l < users
2

Comments

Popular posts from this blog

Standard Error

Shell Basic Operators.

AWK