Difference between revisions of "Cat"
From Hackepedia
Jump to navigationJump to searchm (grammar correction.) |
|||
Line 1: | Line 1: | ||
Cat is a command to concatenate or just print files.. here is an example | Cat is a command to concatenate or just print files.. here is an example | ||
− | cat file | head | + | cat [[Variables|file]] | head |
− | which would pipe the file "file" to the program head. | + | which would [[pipe]] the file "file" to the program head. |
− | |||
− | |||
#!/bin/sh | #!/bin/sh | ||
Line 14: | Line 12: | ||
done | done | ||
− | The above serves as a rudamentary cat, when it's missing in a system. | + | The above [[script]] serves as a rudamentary cat, when it's missing in a system. |