Search Results

Search: Posts Made By: kasparov
2,576
Posted By kasparov
Hi Jim, I am very sorry to delay reply....
Hi Jim,

I am very sorry to delay reply. Please find my code as follow:


#!/usr/bin/sh
wantMore ()
{
echo "Do you want to do more? "
echo "Enter either "y or Y" to continue or "n or N" to...
2,576
Posted By kasparov
Nested case
Hi there,

I have nested case in my script. I am asking user, want to continue? if user press y/Y then my inner case should continue, rather than that my code start from beginning. I would like to...
13,078
Posted By kasparov
Thanks for your quick reply, it works.:b:
Thanks for your quick reply, it works.:b:
13,078
Posted By kasparov
How to exit from mailx
Hello Guys,
I have created function which is as follow:
My function is working, but it's waiting after executing mailx command. If user will press Ctrl+d then only it is executing subsequent lines....
1,216
Posted By kasparov
Thanks for your wonderful explanation. I really...
Thanks for your wonderful explanation. I really appreciated your help. Thanks once again.

Best Regards,
1,216
Posted By kasparov
I am doing to learn. Please check my code is as...
I am doing to learn. Please check my code is as follow



while true
do
mail -E
stat=`echo $status`
echo $stat
if [ "$stat" -eq 0 ]
then
echo There is new e-Mail to read.
exit 1
else...
1,216
Posted By kasparov
How to find whether there is new email or not
Hello All,

I am trying to write a script which will check and informed user that there is a new email. Is any one tell me, how can i find that?

Thanking You,
17,037
Posted By kasparov
Thank you very much to all for your kind help. I...
Thank you very much to all for your kind help. I have solved my problem. I must say that your comments help me to think in that direction. I really appreciate your help. Thanks once again.
17,037
Posted By kasparov
Unforrunatly it's not working. I had tried...
Unforrunatly it's not working. I had tried before. It showing error "syntax error at line 6: `o=$' unexpected".
17,037
Posted By kasparov
Thanks Agama, I am trying to do without any...
Thanks Agama,

I am trying to do without any temp file. Is that possible in that case? I would really appreciate your help.

Thanking You,
17,037
Posted By kasparov
How to store output of command to an array
Hello Guys,
I am trying to store output of command to an array and then want to print, but it showing an error that "bad substitution". I am not getting why it's happening.
Can anyone help me?
...
3,972
Posted By kasparov
Hi Agama, Thanks for your reply. My code...
Hi Agama,

Thanks for your reply. My code [code] grep -v '\(0[2-9]:.*\)' filter output if user is logged in more than 2 hours. My code is working. Only value of variable outside loop is bothering...
3,972
Posted By kasparov
Hello Guys, Thanks for your valuable...
Hello Guys,

Thanks for your valuable comments. Is there any solution without creating temp file?
3,972
Posted By kasparov
How to calculate time
Hello Guys,
I am trying to calculate total hours and minutes a given user has used the system since the beginning of the current month.

#!/usr/bin/sh
hr=0
min=0
last $1 | grep -w `date "+%b"`...
7,905
Posted By kasparov
My echo command is working to get total uppercar...
My echo command is working to get total uppercar and lowercase letter of given file. It's not working while trying to get uppercase and lowercase letter in each line.

Thanking You,
Yatin
7,905
Posted By kasparov
Trying to find number of uppercase and lowercase letters.
Hello Guys,

I am writing a script which check each line for how many Uppercase and Lowercase letter of a given file. Please check my script as follow:



l=0

while read line
do
echo Line...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy