https://github.com/bburdette/increfile
if a file exists already, write to file2, or file3, etc.
https://github.com/bburdette/increfile
Last synced: 2 months ago
JSON representation
if a file exists already, write to file2, or file3, etc.
- Host: GitHub
- URL: https://github.com/bburdette/increfile
- Owner: bburdette
- License: bsd-3-clause
- Created: 2021-01-01T21:21:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-01T21:26:11.000Z (over 4 years ago)
- Last Synced: 2025-01-21T19:51:14.803Z (4 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# increfile
if a file exists already, write to file2, or file3, etc.```
[nix-shell:~/code/increfile]$ cp ./target/debug/increfile .
[nix-shell:~/code/increfile]$ echo "foo" | ./increfile "bar"
[nix-shell:~/code/increfile]$ echo "foo" | ./increfile "bar"
[nix-shell:~/code/increfile]$ echo "foo" | ./increfile "bar"
[nix-shell:~/code/increfile]$ echo "foo" | ./increfile "bar"
[nix-shell:~/code/increfile]$ echo "foo" | ./increfile "bar"
[nix-shell:~/code/increfile]$ ls bar*
bar bar2 bar3 bar4 bar5
[nix-shell:~/code/increfile]$ cat bar
foo
[nix-shell:~/code/increfile]$
```