Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mebens/unix-utils
Repository for the utility commands for the terminal I have/might/will make.
https://github.com/mebens/unix-utils
Last synced: about 1 month ago
JSON representation
Repository for the utility commands for the terminal I have/might/will make.
- Host: GitHub
- URL: https://github.com/mebens/unix-utils
- Owner: mebens
- Created: 2011-03-16T19:20:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-03-16T19:31:47.000Z (over 13 years ago)
- Last Synced: 2023-03-11T15:06:05.359Z (over 1 year ago)
- Language: C
- Homepage: http://www.nova-fusion.com
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository is home to the little utilities for the terminal I have/might/will make. Currently it only contains one, and that is
strlen
.## Directory Structure
In the bin folder you'll find the compiled utilities. In the src folder you'll find the source code for each utility.
## strlen
strlen
, as you can probably guess, tells you how many characters are in a string. You can use it like this:$ strlen test test
9
by passing in arguments for the string. If you don't pass in any arguments, the program will proceed to take the contents from standard input:$ strlen
Foo
Bar
Hello world!
^D
18Don't enter the ^D of course, that's just a symbol for Ctrl+D. This allows you to do stuff like:
$ strlen < Some_File.txt
390
$ pbpaste | strlen # how long is the stuff on my clipboard?
65
There you go!