I was using a for loop to read the filenames in a directory but received errors on files with spaces in the names. For future reference the following worked:#!/bin/bashls -1 | while read FILE; do echo "$FILE" # double quotes needed for filename with... » More
I doubt this will be of any help to anyone else but for future reference.Problem:A content management system writes the URLs in <a> tags with a path e.g.:/sites/mysite/AboutUsbut the customer wants the addressbar to show... » More
I was copying some photos from my wife's Fuji camera when the photos disappeared from view - obviously not something I caused!Anyway after the initial panic I found PhotoRec which can be downloaded from the CG security website or can be installed on... » More
The last time I tried installing FreeNX was on Suse about 3 years ago. So again frustrated with the speed of VNC I tried FreeNX again this time on Ubuntu 9.04 following this guide.Ensure SSH server is installed or sudo apt-get install... » More
I had a customer with a problem using a web based email marketing software application. Importing data and deleting data seemed to stop working. The database uses InnoDB tables so I used phpMyAdmin to try to execute the delete SQL code and received the... » More
The Wikipedia article on find is great.Searching To check for the existence of the string in any of the files in the directory structure:find . -exec grep -H "searchstring" '{}' \; -printOn Solaris ommit the '-H'.or using grep only:grep -r "searchstring"... » More
I was trying to use Rsync on a Solaris machine and received the following error message:ld.so.1: /usr/local/bin/rsync: fatal: libpopt.so.0: open failed: No such file or directoryI discovered from... » More