« first day (1743 days earlier)      last day (15 days later) » 

3:17 PM
1
Q: How can I use find paired with grep to delete files

newdeveloperI am attempting to write a script to delete files from a directory. find /home/docs/* -name "*.log" -type f -print -exec rm -f {} \; The above works however I need to use grep to target directories using grep. When I put grep I get failures. find /home/docs/* -name "*.log" -type f | grep -i "Te...

 
 
1 hour later…
4:25 PM
2
Q: Root couldn't write to file with rw permissions for all users and owned by other user

armokenI have script that can be runned from different users on the same machine. This script should write logs to the same file on every run. Minimal version of script: #!/usr/bin/env bash # 2 touch /var/tmp/lll.log # 3 chmod 666 /var/tmp/lll.log # 4 ...

 

« first day (1743 days earlier)      last day (15 days later) »