10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have several line in a text file. for example
I like apple;
I like apple
I like orange;
Output: I like apple
I try to useif grep -q "!\;$"; then (Not work)
Please use CODE tags when displaying sample input, sample output, and code segments (as required by forum rules). (1 Reply)
Discussion started by: cmdcmd
1 Replies
2. Shell Programming and Scripting
Hi,
We have some config file and there we are looking to append a line if it is not found.
abc.conf
authpriv.* /var/log/secure
mail.* -/var/log/maillog
*.debug @vxhgt-hskhng02
cron.* ... (12 Replies)
Discussion started by: Litu19
12 Replies
3. Shell Programming and Scripting
hi guys
we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies
4. Shell Programming and Scripting
Can someone help to transform the below logic into a shell script, might be easy for some of you.
I have a file with below text, I need if the line has the ":" and the above to it is not a blank line should print " <text>: is incorrect format"
Apple:
vitamin = A... (0 Replies)
Discussion started by: usyseng
0 Replies
5. Shell Programming and Scripting
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Discussion started by: venu
3 Replies
6. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
7. Shell Programming and Scripting
how to check which line of the script is showing the error...
like -x will print each output in stdout...
but want to know exact error line trowing error.. (2 Replies)
Discussion started by: mail2sant
2 Replies
8. Shell Programming and Scripting
hi guys ..newbie here i would like to create a simple script tat will detect wether the machine has IP or not ...
but it seems that my script doesnt really work it kept rebooting...
i set this script during boot so that it will check else it will reboot
it a shell script thou...
... (5 Replies)
Discussion started by: bladez
5 Replies
9. Shell Programming and Scripting
I have written the below script to determine whether a string is palindrome or not ?
But its not working, any help to debug it ?
I am new to this forum but when I searched for my question, I found that many people refused to answer this question thinking that its Homework question, Therefore I... (2 Replies)
Discussion started by: gridview
2 Replies
10. Shell Programming and Scripting
I want to create an automated script which is called by another maually executed script.
The condition is that the no one should be able to manually execute the automated script.
The automated script can be on the same machine or it can be on a remote machine.
Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies