0
votes
1answer
360 views

How to pipe and echo the result that is being processed? [closed]

I'd like to execute this command: find /apps/ -type f -print0 | grep -z log$ | xargs -0 grep 'this->aForm' And in parallel, I'd like to see which files are being processed. How to to this?
1
vote
5answers
445 views

selective backup script in bash

I've been using this simple command (that's all I can do :) to backup the whole tree from my user data in NAS server for a year. cp -r /STORAGE /BACKUP-STORAGE/YYYY-MM-DD Unfortunately, after a ...
3
votes
3answers
3k views

How does cd command work? (unix) [closed]

Could anybody explain to me how cd - command work? man cd tells me that An argument of - is equivalent to $OLDPWD. Then I found on the net that $OLDPWD is the previous working directory as set by the ...