Not sure if you know this but is helpful none the less.

If you are looking for a sepcific file you can try to show all files
starting with "f":
# ls f*

Also you can show all files starting with "fire" in the following command:
# ls fire*

And in the follow command you can show all files starting with "A" or
"B" or "C":
# ls [ABC]*

Or you can show all files starting with a capital letter:
# ls [A-Z]*

Or you can show all files starting with a capital letter or number:
# ls [A-Z0-9]*

You can also try the following to show extension types, (file ending with .txt):
# ls *.txt

Really neat stuff.  Also you can use the grep command with ls quite
nicely, the following will list files that has "open" in the filename:
# ls -l | grep open

Once again if the list is too long add the less command:
# ls -l | grep open | less

Or you can pipe the output to a file and do a search in the resulting
new file with your favorite editor, (VI):
# ls > filelisting.txt


Remember the command-line is where the power is.  With great power
comes great responsability - quote Spider-man, yada yada...

Yes I am a command-line junkie and proud of it!

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to