Search This Blog

Monday, April 4, 2011

ls exclude

http://www.unix.com/shell-programming-scripting/100038-ls-exclude-pattern.html

# See all files ending in .html
ls | grep "\.html$"
# see all files not ending in .html
ls | grep -v "\.html$"

No comments:

Labels

Blog Archive