pretty

Tuesday, January 10, 2023

grep on a remote machine and save output to local machine

Grep on a remote machine and save output to local machine This particular example grep is used for trying to find deleted files on an disk in linux
ssh user@remotehost "grep -a  -P 'searchterm' /dev/md2" > output.txt

No comments:

Post a Comment