Search Results

Search: Posts Made By: intelinside
2,117
Posted By intelinside
Yes, I'm sure.
Yes, I'm sure.
2,117
Posted By intelinside
Using su in a shell script
Hello, UNIX-Forums.

How can I use su in a shell script?

echo "Please enter the root password below."
su
echo "Thank you."

Desired output:
me@pc:~$ bash file
Please enter the root...
2,099
Posted By intelinside
That's it! Thank you!
That's it! Thank you!
2,099
Posted By intelinside
If + multiple conditions
Hello Unix-Forums!
It has been a long time since my last post, but finally I've got a new question:

I know in case you can use multiple patterns by
case $var in
a|b|c|ab)
and so on.

But how...
1,514
Posted By intelinside
Listing all digits behind the comma with grep
Hello, Unix-Forums!

1.23456789

This an example number. It can be any number. I want grep to only find the digits behind the "."
That means
23456789

should be the output in this case.
...
5,293
Posted By intelinside
Yes! Thank you!
Yes! Thank you!
Forum: Debian 04-22-2012
1,868
Posted By intelinside
man apt-get will give you all the...
man apt-get

will give you all the information needed.

intelinside
5,293
Posted By intelinside
Bc: File is unavailable
Hello, Unix-Forum!

Yet another problem:

var=1.5
bc $var + 3.2

results in

File 1.5 is unavailable

So I must be doing something wrong but I don't know what.

intelinside
Forum: Debian 04-16-2012
1,902
Posted By intelinside
Debian Stable + KDE
Hello, Unix - Forums.

How can I set the DE to KDE on a fresh, netinst image of Debian Stable?

By default, it installs GNOME. Is there a way to change that?
888
Posted By intelinside
Testing the length of a string
Hello, Unix-Forums!

Is there a command that can check how long a user-entered string is?

Please don't give me a code, just the name of the command (playing around yourself is much more fun than...
802
Posted By intelinside
Yeah, that's it. Thank you :b:
Yeah, that's it.

Thank you :b:
802
Posted By intelinside
space after read prompt?
Hello, Unix-Forums.

How can I make a Space after a read prompt? let's assume:

read -p "Are you good?:" varthe output would be ( | is the cursor ):
Are you good?:|But I want it to be:

Are...
5,261
Posted By intelinside
Ah, so using -F avoids interpreting * as a...
Ah, so using -F avoids interpreting * as a wildcard?

That means it would threat everything as a normal letter instead of using special functions like *.

Did I get it?
5,261
Posted By intelinside
grep -F, what is it good for?
Hello, Unix-Forums!

I have a simple question:

I cannot see any difference between
grep [expression] [file]

and

grep -F [expression] [file]

The help says that "PATTERN is a set of...
1,117
Posted By intelinside
Thank you. But can you tell me what's wrong with...
Thank you. But can you tell me what's wrong with my code. I'd be really interested in that.

Edit: Solved. Looked closer to radoulov's syntax. You're my hero :)
1,117
Posted By intelinside
Value of variable is NULL, but test doesn't seem to recognize
Hello, Unix-forums!

My problem:
read -p "Enter any number, please" number
sleep 1
echo $number | tr -d 0-9
test -z $number && echo "Thank you" || echo "This is not a number"Test always...
1,038
Posted By intelinside
Okay, I read some man pages about the tr...
Okay, I read some man pages about the
tr -dcommand you use in your script and I think it is
is exactly what I need. Thank you!
1,038
Posted By intelinside
Redirecting errors of test command
Hello, Unix-Board!

Normally, I would hide error messages in a shell script with

command 2> path

but test also prints out errors if I do that.

The code of the script is (please don't tell...
Showing results 1 to 18 of 18

 

Featured Tech Videos

All times are GMT -4. The time now is 01:31 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy