DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Loop over a set of files from the shell | Solaris | Tech-Recipes

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

1 comment

  • Possibly a bit pedantic, but to save system time (especially if using multiple times in a script) you may be better to do the following for the last part...

    cat `ls -tr *.log` >biglog

    The cat is designed to be able to put two or more files together.

    By doing it this way, you don't need to worry about the existence or contents of biglog as you will overwrite it with the > rather than using apend to >>

Add New Comment

Returning? Login