Python command line script to quickly find strings in a file on a remote (ftp) server.
- Connects to a pre-configured FTP client,
- loads the content of a specific file into memory (saver than downloading the file),
- lets you search for strings, returns the matching line(s),
- cleans all up behind you.
- You have notes or sensitive information stored on your FTP server
- You need to access and search only a few lines of your notes
- You do that very often
- You got frustrated with the normal workflow of using a standard FTP client (connect, download, open, search, delete, etc.)
- Call the script:
QuickRemoteLookup.py mynotes.cfg
, - enter ftp password to connect to the server,
- after the file is loaded into the memory, the connection is closed,
- type in a search string and press Enter to view all lines that match the string,
- repeat or leave the input blank to close
The script opens a secure communication connection and does not download the file. It only loads its content into the memory. Thereby, it is more save for sensitive information.