Snippets 1000
Python and bash snippets
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment