Search Results

Search: Posts Made By: pavlosgr
2,351
Posted By pavlosgr
You are right Chubler_XL. Ubuntu allows float...
You are right Chubler_XL. Ubuntu allows float number as sleep time.
Appreciate your help.
2,351
Posted By pavlosgr
I'm running Ubuntu 10.10, 2.6.35-24-generic...
I'm running Ubuntu 10.10, 2.6.35-24-generic kernel.

My code now looks like :

#!/bin/sh
./prog $1 &
myPID=$!

sleep 1
kill -0 $myPID

if [ $? -ne 0 ] ; then
echo 'process terminated'...
2,351
Posted By pavlosgr
Trapping program return code
Hello

I have a program (prog) that accepts a parameter in order to execute some internal loop grabbing memory in each iteration. I'm using top to monitor the memory usage and to produce an...
1,612
Posted By pavlosgr
Finally I have build the following code. awk...
Finally I have build the following code.

awk produces a file replaced.txt which is a log of the changes that will take place. It logs line, filename and the changed line.

sed makes the changes....
1,612
Posted By pavlosgr
Thanks for the reply but I'm a little lost. ...
Thanks for the reply but I'm a little lost.
What the redirection /dev/null 2 is? And a 2nd redirection after that?
Can we direct output in two directions at the some time?

That's my main...
1,612
Posted By pavlosgr
Another awk question
Hello

I'm (another) newbie in bash scripting (my second day).
I'm trying to locate a phrase in a number of files (multiple files in subdirectories) replace this phrase with another one
and...
Showing results 1 to 6 of 6

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