https://github.com/jmcph4/sums
Sum the lines of a text file
https://github.com/jmcph4/sums
Last synced: over 1 year ago
JSON representation
Sum the lines of a text file
- Host: GitHub
- URL: https://github.com/jmcph4/sums
- Owner: jmcph4
- License: mit
- Created: 2017-11-03T05:04:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T05:04:23.000Z (over 8 years ago)
- Last Synced: 2025-02-16T00:44:13.574Z (over 1 year ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sums #
---
Given a text file, `f`, containing space-delimited integers, sum each line of
the file and write it to the corresponding line of an output file, `f.out`.
## Build ##
Just
make
it's that simple
## Invocation ##
Invoke like so
./sums file1 file2 file3
and there will be three files: `file1.out`, `file2.out`, and `file3.out`
created in the same directory.