Quote:
Originally Posted by Chetansingh
I knew that TB0ne is going to come into this. As i have said many times earlier that i have registered myself 5 yrs back and that point of time i was interested in linux and then my work field changed for 3.5 yrs. I am into linux from last 1.5 yr and did my certification last year in 2014, am i am sure that certification course doesn't contain scripting. I am learning things on own and when even i get some issues i try to post it here. I just asked how to proceed on the script not that i asked for exact coding. I have till now not used the coding and trying some other workaround like awk or ziping the log and move etc.
|
Says right in the list of bullets for RedHat certification requirements:
Quote:
Use shell scripting to automate system tasks
|
That seems pretty clear to me.
What you ought to consider is that some greater and more focused initiative will be very helpful in your career.
I'm sure you're seeing that there are sometimes several ways to accomplish a task.
If you're new at scripting, then take the time to look up script references and become experienced at scripting. Long term as an IT person, and in general as a Linux person, the talent of being able to script will be irreplaceable, and I will grant that NOW is a good time to start learning scripting so that as you progress in your new career. You will have that as a background skill which I, and many, will agree is mandatory for your field.
It would help in this particular case had you perhaps asked the question and at the same time illustrated that you had been reading up on scripting and started to write some rudimentary scripts. Or tried to use something like the sed command, as recommended. Further, the formulation of an approach as also shown in some detail earlier is another good indicator of how to visualize and summarize the problem and desired solution, and this is also a talent which you ought to concentrate your efforts on learning.
Because the world that you're working in, presuming it is a system administrator, is one where "you" are supposed to be the resourceful expert, and in subjects which do not merely have one word or one sentence answers. The things you solve are not as simple as "reboot", or "delete your cache", but instead you need to understand the pathway that users followed to get their selves that messed up where they require your assistance.
Or as in something this rudimentary, you should be resourceful enough to at least have tried filtering the file via the date command, or tried to use the cut command to filter the output of a very large log file.