Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello everyone, on my Solaris machine, I have some log files, that are creaeted on daily basis, and get saved in some specific format, like this:
$ cd /home/jack/logs/
$ ls -la
logs.20121019-12345 and so on...
I have a daily task to analyze files create on that day i.e. files that are matching that day's format only. Suppose I am analysing them today then my script should consider only file having format 20121019. (Note: I won't prefer listing the files on basis of their modification time as it may list files of previous day).
I want to create a script, which takes such files of today's format i.e. 20121019 and analyse them to get some date. How to achive this? Any help?