https://github.com/caius/swcat
cat(1) clone in Swift
https://github.com/caius/swcat
cat unix-command
Last synced: about 1 year ago
JSON representation
cat(1) clone in Swift
- Host: GitHub
- URL: https://github.com/caius/swcat
- Owner: caius
- License: mit
- Created: 2014-06-03T21:52:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T23:04:36.000Z (about 8 years ago)
- Last Synced: 2025-03-21T02:12:34.354Z (over 1 year ago)
- Topics: cat, unix-command
- Language: Swift
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swcat
[cat(1)](http://www.freebsd.org/cgi/man.cgi?cat(1)) *partial* clone in Swift.
Currently supports reading from stdin and writing to stdout with no arguments given, or reading filenames from given arguments.
## Usage
Reading stdin to stdout:
```bash
$ echo "hi" | swcat
hi
```
Reading multiple files, including ones that don't exist:
```bash
$ swcat bling.txt count.txt
swcat: bling.txt: No such file or directory
1
2
3
4
5
```
## License
```bash
$ swcat LICENSE
```