Skip to content

Commit

Permalink
Merge pull request #7 from moul/dev/mouuul/update-example
Browse files Browse the repository at this point in the history
chore: update README
  • Loading branch information
moul committed Jul 4, 2021
2 parents d11bd70 + a88f313 commit 9df5221
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -12,10 +12,12 @@ generate: install _gen-logs-dir
(rrgc -h || true) 2>> .tmp/usage.txt
echo 'foo@bar:~$$ ls logs' >> .tmp/usage.txt
ls logs >> .tmp/usage.txt
echo 'foo@bar:~$$ rrgc 24h,5 1h,5 -- ./logs/*.log | xargs rm -v' >> .tmp/usage.txt
rrgc 24h,5 1h,5 -- "./logs/*.log" | xargs rm -v >> .tmp/usage.txt
echo 'foo@bar:~$$ rrgc 24h,5 1h,5 -- ./logs/*.log' >> .tmp/usage.txt
rrgc 24h,5 1h,5 -- "./logs/*.log" >> .tmp/usage.txt
echo 'foo@bar:~$$ rrgc --keep 24h,5 1h,5 -- ./logs/*.log' >> .tmp/usage.txt
rrgc --keep 24h,5 1h,5 -- "./logs/*.log" >> .tmp/usage.txt
echo 'foo@bar:~$$ rrgc 24h,5 1h,5 -- ./logs/*.log | xargs rm -v' >> .tmp/usage.txt
rrgc 24h,5 1h,5 -- "./logs/*.log" | xargs rm -v >> .tmp/usage.txt
echo 'foo@bar:~$$ ls logs' >> .tmp/usage.txt
ls logs >> .tmp/usage.txt
go doc -all ./rrgc > .tmp/godoc.txt
Expand Down
21 changes: 20 additions & 1 deletion README.md
Expand Up @@ -50,6 +50,26 @@ O.log
P.log
Q.log
R.log
foo@bar:~$ rrgc 24h,5 1h,5 -- ./logs/*.log
logs/B.log
logs/C.log
logs/E.log
logs/H.log
logs/M.log
logs/N.log
logs/O.log
logs/P.log
logs/Q.log
logs/R.log
foo@bar:~$ rrgc --keep 24h,5 1h,5 -- ./logs/*.log
logs/A.log
logs/D.log
logs/F.log
logs/G.log
logs/I.log
logs/J.log
logs/K.log
logs/L.log
foo@bar:~$ rrgc 24h,5 1h,5 -- ./logs/*.log | xargs rm -v
removed 'logs/B.log'
removed 'logs/C.log'
Expand All @@ -61,7 +81,6 @@ removed 'logs/O.log'
removed 'logs/P.log'
removed 'logs/Q.log'
removed 'logs/R.log'
foo@bar:~$ rrgc 24h,5 1h,5 -- ./logs/*.log
foo@bar:~$ ls logs
A.log
D.log
Expand Down

0 comments on commit 9df5221

Please sign in to comment.