Search Results

Search: Posts Made By: wiseguy
7,393
Posted By wiseguy
Okay, I found it: (bourne-shell) #!/bin/sh ...
Okay, I found it:
(bourne-shell)
#!/bin/sh
base=2 #for dual
number=10
echo "obase=${base};${number} | bc -l"
7,393
Posted By wiseguy
converting decimal in other systems with bc
Hallo,

how can I convert number systems with bc?

I need to convert a decimal number to octal, dual or hex number...
1,884
Posted By wiseguy
automatic word wrapping
Hallo,

I want to have this Output:
Name Street Phone Mail Favorite_thing_o
f_what_ever_you_
want
Jak ...
1,598
Posted By wiseguy
Okay, now I get it: I had this all in a function...
Okay, now I get it: I had this all in a function named "sort" ... :eek:
1,598
Posted By wiseguy
Okay, that "</dev/tty" is a good idea - i thought...
Okay, that "</dev/tty" is a good idea - i thought that works without that, but now I know thats better to do ;-)

But the Problem with my sort command isn't solved:
I get nothing from it, but when...
1,598
Posted By wiseguy
Okay, i set it in double qoutes: stop="yes" ...
Okay, i set it in double qoutes:
stop="yes"
while [ $stop = "yes" ]
do
printf "Select one (0/1/2/q): "
read inputkey
case "$inputkey" in
0) echo "you sayed 0"
tail -n 2...
1,598
Posted By wiseguy
loop because of using 'sort -k 2'
Hallo,

I have a problem with the sort command:
When I run the following in a shell, it works fine:
tail -n 2 file.txt | sort -k 1
I tried it under severel shells: c-shell, borne-shell, bash
I...
24,776
Posted By wiseguy
I mean when I run the script on the c-shell... ...
I mean when I run the script on the c-shell...

When I run "export EDITOR=vi" (under c-shell), I get the folllowing error:
export: Command not found.
24,776
Posted By wiseguy
I have an other Problem with this read command: ...
I have an other Problem with this read command:
(Even thats not a problem with read, I ask anyway in this thread)

When i make inputs (bechaue of a read command) I cant use curser direction (left...
24,776
Posted By wiseguy
yes, thats what I have now. But i want to get...
yes, thats what I have now. But i want to get this later: "prompt: _"
("_" is the cursor :))

I have to do many inputs and I want to "save" lines - so i want to have mor space on the screen - do...
24,776
Posted By wiseguy
Okay, its a solaris 10 Is there any...
Okay, its a solaris 10


Is there any alternative possible, which allowes an input from keyboard and where I can use a prompt?
24,776
Posted By wiseguy
read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell
Hallo,

i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier

When I run these in c-shell i get this error...
3,041
Posted By wiseguy
if [ -z echo foo | egrep -e 'regexp' != '' ] -> dont work
Hallo,

I need to test a String (a special ip number-string).

So I want to run that:

ipadress=172.0.0.0

# for debugging:
echo $ipadress | egrep -e...
Showing results 1 to 13 of 13

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