Search Results

Search: Posts Made By: Moumou
2,196
Posted By Moumou
Hi, First *_* : it represent a string in...
Hi,

First *_* : it represent a string in two (or more) parts as follow :
Note that the * represent whatever char you want.
(of course, *^* is the same but with ^ instead of _ )

Secondly...
5,276
Posted By Moumou
Can you post your code please? How do you want...
Can you post your code please?
How do you want the file's content to be printed? in the terminal (in this case maybe a "more file.txt" could do)?
21,541
Posted By Moumou
Ok, I think I need to apologize... Indeed it...
Ok, I think I need to apologize... Indeed it works. I must have written something bad when i tried it..

Thanks anyway!
21,541
Posted By Moumou
well, in this case, the shell will says that...
well, in this case, the shell will says that there is too few arguments for "rm"
21,541
Posted By Moumou
thanks a lot Jean-Pierre, you save my life! :D:b:...
thanks a lot Jean-Pierre, you save my life! :D:b:
And maybe you could save me a 2nd time if you say me hox to remove all those files...
I tried
rm *
but it always says "argument list too...
21,541
Posted By Moumou
chmod for great number of files
Hi all,

I have a script who generate as an output a lot of files (the number is highly variable : 500 to more than 10000).
At the end of this script I need to do a "chmod" on all those files. I...
1,737
Posted By Moumou
Ok, tanks for your answers both of you!
Ok, tanks for your answers both of you!
1,737
Posted By Moumou
don't understand a command "."
Hi all,

I have a script with those two lines :
test -f $PWD/mysetup.txt
. $PWD/mysetup.txt

I understand the first one, but could anyone explain me the role of the second one? All the thing I...
2,842
Posted By Moumou
#!/bin/bash var="00:00:10" ...
#!/bin/bash

var="00:00:10"
varbis="00:00:09"

if [ $var = "00:00:10" ] ;then
echo same
fi

if [ $varbis != "00:00:10" ] ;then
echo not the same
fi
exit

be careful to let spaces...
2,842
Posted By Moumou
[ $yourvariable = "00:00:10" ]
[ $yourvariable = "00:00:10" ]
1,552
Posted By Moumou
are you running your_script_name.sh arg1 arg2 ...
are you running your_script_name.sh arg1 arg2
or your_script_name arg1 arg2?

Just to write something cleaner, you could do something like:
if [ "${option_count}" -eq 1 ] ;then
ACTIOn_TYPE=$1...
3,290
Posted By Moumou
Thx for your answers. I found another solution :...
Thx for your answers. I found another solution : contacting my computing office ^^. Files restored!
3,290
Posted By Moumou
big problem with rm command, please help me!!
Hi every body,

well, i made quite a big mistake... In a script, I created a directory called "$PWD" ( it was unwanted...). nothing very frightening with that. The problem is that I wanted to...
3,395
Posted By Moumou
here is the script I wrote : #!/bin/bash ...
here is the script I wrote :
#!/bin/bash
stty erase ^H

testlogin()
{
local log=$0
if(test $login != papa);then
exit 1;
fi
}

echo -n "login? "
read login
testlogin $login
echo"still...
3,395
Posted By Moumou
Can you post the script you wrote corresponding...
Can you post the script you wrote corresponding to "some command" plz?
Where does the parameter of your DoExit function comes from?
3,395
Posted By Moumou
Hi, if I'm xell understanding, what you want is...
Hi, if I'm xell understanding, what you want is that if you have no arguments in your function DoExit, you exit the main program.
In this case, you can test the exit value after your function :
...
11,871
Posted By Moumou
Hi, i try something like this : nombre=13.5 ...
Hi, i try something like this :
nombre=13.5

if (test $nombre = {*.*}); then
echo "ici"
else
echo "la bas"
fi
exit 0;

But it doesn't works..... Whatever value I put in nombre, it returns...
8,602
Posted By Moumou
You can use this function even with a script who...
You can use this function even with a script who needs parameters.
Indeed, in the example of "sleep 67", "67" is a parameter.

I use it withe a script who has 10 parameters and it works very well!...
8,602
Posted By Moumou
How are you using this function? if you are...
How are you using this function?
if you are doing something like this :
code code
code code
code code
elapsed
I understand why it doesn't works. You have to specify on which script you want to...
8,602
Posted By Moumou
Thx a lot Jean Pierre, I tested it and it...
Thx a lot Jean Pierre,
I tested it and it works.... in bash shell. And i need it for a csh script and here it doesn't work (snif..)
When I just copying the script it send me this error :


and...
8,602
Posted By Moumou
ok, thx a lot for your answer. Another...
ok, thx a lot for your answer.

Another question : what is the difference between real time, user time and system time?

And I just realized that if forgot a part of my question previously so I...
8,602
Posted By Moumou
get execution time of a script
Hi,

I have a simple question. How can I get the execution time of a script and maybe put it in a variable?

Another question. How can I get only time and not date and put it in a variable? I...
3,555
Posted By Moumou
Hi, There's something I don't understand. ...
Hi,

There's something I don't understand.
is
redirects.virgin-atlantic.com.confthe name of the file? In this case, what is the use of
> temp?

Another question : this script is written...
4,462
Posted By Moumou
thx, and for the csh, it's not a choice... or i...
thx, and for the csh, it's not a choice... or i need to translate a whole csh script in bash... qiute boring!

Thx again for your answer
4,462
Posted By Moumou
parallel execution of script/ synchro problem
Hi everybody,

In a csh script, i need to run 4 time the same prog with different parameters. What i want is to run them in parallel. for this i use the command

toto1.sh & toto2.sh & toto3.sh &...
Showing results 1 to 25 of 32

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