1

ls list files not matching given string in filename

view story
linux-howto

http://unix.stackexchange.com – I have a directory in which lot's of files (around 200) with name temp_log.$$ are created with several other important files which I need to check. How could I easily list out all the files and exclude the temp_log.$$ files from getting displayed ? Expected output $ ls -lrt <exclude-filename-part> -- Lists files not matching the above given string Have gone through ls man page but couldn't find anything in this reference. Please let me know, if I have missed any vital information here. Thanks (HowTos)