Category: knowledgebases

Mirror an FTP site to Linux

I needed to mirror an FTP site to linux, as preparation for of a migration. After looking for the most easy way to do this, I found ‘lftp’ on the linux side, and used that.

In case you don’t have lftp, its easy to ‘apt-get install lftp’ if you’re… Read more »

Find text in files and report filenames

The “find” command usually reports too much information, because

also reports names of the files that do not contain the text. A useful oneliner to have at hand is to start a cmd.exe window in the right folder, and enter:

If you need this to work recursive, use:… Read more »

Replace text in multiple files

I needed to replace text in multiple files on an Ubuntu server. The text was “D:/FTPdownloads”, and would be changed to “srv/ftp” (migrating an FTP server from Windows to Linux). Also this had to be done in 100+ files in a bunch of directories. Quickest way I found to do… Read more »