Thanks Lorna, i tried it and it works great. I normally use the command history | grep “” but this is faster i think.