7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a requirement to perform specific set of tasks based on server , So I want to have the condition(s) defined based on server. Here is the script I came up with and I have read multiple blogs and couldn`t find any mistake from my script. Can you guide on what I am overlooking here ?
... (2 Replies)
Discussion started by: Varja
2 Replies
2. UNIX for Beginners Questions & Answers
Hi Team,
If condition is not working properly and getting below error
# ./score1.sh
Enter your score ('q' for quit): 102
Enter your score ('q' for quit): q
./score1.sh: line 9: q: integer expression expected
Average is: 102%.
Exit.
Actual code
# Calculate the average of given... (3 Replies)
Discussion started by: Torrid
3 Replies
3. Shell Programming and Scripting
Need assistance in changing the hostname
I have multiple html files in a directory , its src is pointing to houston.sp.com and it needs to change to alaska.sp.com . Below is the example
Trying to use perl to change it . Need suggestiong
<img border="0"... (3 Replies)
Discussion started by: ajayram_arya
3 Replies
4. Shell Programming and Scripting
how can i limit the output to only php, html, htm files?
i found this as one way
find . -regex ".*\(php\|html\|htm\)$" -type f -print0 | xargs -0 grep 'keyword'and it works but is a bit slow
is there any faster way?
i tried something like this but it doesnt work:
find ./ -iname "*.php"... (2 Replies)
Discussion started by: vanessafan99
2 Replies
5. Shell Programming and Scripting
Hi all,
ssh uname@remote_server 'cat /tmp/remote_file_name > home_dir/a512386/new/local_file_name'
The above given command is working fine.
but if i try to move the file only if exists in the remote server i.e) giving the same within if condition it executes but the file is not stored in my... (1 Reply)
Discussion started by: Shri123
1 Replies
6. Shell Programming and Scripting
Hi,
I am using RHEL5.
I have following if condition.
if
In the above condition, if the value of a contains word WARNING, it should match. i.e., WARNING_MESSAGE, CRITICAL WARNING, WARNING ALERT etc. it should match.
For b, alert error, ALERT ERROR, ERROR IMMEDIATE ACTION REQUIRED, etc... (2 Replies)
Discussion started by: user7509
2 Replies
7. Shell Programming and Scripting
Hi Gurus,
I have shell script in which i have to check if time is between to possible value or not. For that i am using following line of code
if
then
echo 'Found In Between'
echo $ftime
... (5 Replies)
Discussion started by: MANISH KU
5 Replies