Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caius/swcat
cat(1) clone in Swift
https://github.com/caius/swcat
cat unix-command
Last synced: about 1 month 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T23:04:36.000Z (almost 7 years ago)
- Last Synced: 2024-11-30T13:47:24.411Z (about 2 months ago)
- Topics: cat, unix-command
- Language: Swift
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- 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
```