Search Results

Search: Posts Made By: bensky
5,640
Posted By bensky
OK, it is true, you can find in this forum an...
OK, it is true, you can find in this forum an answer for each UNIX question. Thanks a lot!
5,640
Posted By bensky
I got a solution for my problem, I put the while...
I got a solution for my problem, I put the while loop into the show_menu function.
But it is still not clear for me why my old approach does not work.
5,640
Posted By bensky
tee problem
Hi you,

This the code I have:

function show_menu {

echo " lalalalal"
echo " 1. ...."
echo " 2. ...."
echo " 3. exit"
read choice

case $choice in
1) ... ;;
2) ...;;
*)...
2,120
Posted By bensky
Thanks alot, You are the best, I didn't know this...
Thanks alot, You are the best, I didn't know this trick, but it works great!
2,120
Posted By bensky
splitting strings
Hi you,

I have the following problem:

I have a string like the followings: '166Mhz' or '128MB' or '300sec' or ...
What I want to do is, I want to split the strings in a part with the numbers...
18,813
Posted By bensky
typo!! For sure i did not grep if -v for my...
typo!!

For sure i did not grep if -v for my process...
I corrected it...
18,813
Posted By bensky
Hi, I've nearly the same problem, but when I...
Hi,

I've nearly the same problem, but when I use
ps -ef
I can see the complete anem of the process I like to kill e.g:

ps -ef

bensk 11870 1 0 14:24 pts/5 00:00:00...
2,658
Posted By bensky
colored data output
Hi,

I am working with HP-UX 11.
I try to make an colored data output with echo.

I tried the following:

echo "\033]32m Red"

This works perfectly in my terminal.
But when I type the same...
5,239
Posted By bensky
THX I did not know, that this variable exists,...
THX I did not know, that this variable exists, but I found it in the man page of ksh!! My fault....

And is there an easy way to convert than the seconds into minutes and secondes or just the way...
5,239
Posted By bensky
Hi you, I think my problem is very similar,...
Hi you,

I think my problem is very similar, so I posted my question here.
I want to measure the time my script runs. So that at the end of teh script I can tell the user the execution of the...
59,132
Posted By bensky
Thanx for your help, it works! Ben Sky
Thanx for your help, it works!

Ben Sky
59,132
Posted By bensky
grep for a process
Hi,

I want to grep within a script for a process.
The problem is I just no the name of the process not its location.

I tried the following:

ps -ef | grep demo

but than I get also...
2,138
Posted By bensky
Hi all, I solved my problem. I allways...
Hi all,

I solved my problem. I allways searched for "xxx" and compared the part before and the do the same function for the part after the "xxx". Here is my code for this:

function check {
...
2,138
Posted By bensky
Hi the problem is, that not allways "!!"...
Hi

the problem is, that not allways "!!" sings are there this also could be ",./!@#" etc.

Regards
Ben
2,138
Posted By bensky
compare data
Hi,

my problem is, I have to files, one is a log file of an actual execution, the other file is a pattern file.

The entries

"abcd,,!!11.22!!,3asdf" and
"abcd,,!!xx.xx!!,3asdf"
...
3,562
Posted By bensky
Hi, although its not so nice to convert the...
Hi,

although its not so nice to convert the * to a - its a solution.
Thanks.
3,562
Posted By bensky
cat file problem
Hi,

I wnat to read a fiel line by line and store each line in a variabel, so I made a for loop:


for i in `cat file` ; do
#do sth.

done;

The problem is, that in the file, there are...
11,102
Posted By bensky
Hi, I found the error.. I had set the ...
Hi,

I found the error..

I had set the
IFS="|" so that than the echo also printed out the whitespaces...

Thanks for your help

Ben Sky
11,102
Posted By bensky
Hi David I tested your statement, and it...
Hi


David I tested your statement, and it works, if i do this in the prompt, but if I include this in my script it doesn't work:

a=`echo $1 | sed s/\s+//`
echo "!${a}!"

there are still...
11,102
Posted By bensky
remove whitespace and test
Hi,

I know removing whitespaces I can found so many threads to read how it works and i did it, but my problem isn't solved...

I have in my script a variable $1 which can contains a text like " ...
30,354
Posted By bensky
Ok, but is there also a possibility to view man...
Ok, but is there also a possibility to view man pages without moving it in one of these directories, because I don't have rights to write sth. in these directories!!
30,354
Posted By bensky
man pages
Hi,

I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed??

THX Bensky
3,072
Posted By bensky
man pages creating
Hi,

I wnat to create my own man pages, but I can't find a good description of the troff language.

Knows somebaody a good docu including examples??

Thx Bensky
Showing results 1 to 23 of 23

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