Search Results

Search: Posts Made By: eur0dad
Forum: Linux 06-15-2007
2,434
Posted By eur0dad
Modifying/Rebuilding non-source PRM?
I can't find a source rpm for a particular tool that I'm trying to modify. I can only get a hold of the noarch and tar.bz2. Can I modify either one of these and re-package them as a noarch.rpm?
74,277
Posted By eur0dad
bash: testing if string is a number
How do you test if a string is a number?

Trying to do something like this:

x="AS"
if( x is not a number ); then
x=0
fi

Because I want to do number arithmetic with x.
9,469
Posted By eur0dad
So does that mean I don't need to put "exit...
So does that mean I don't need to put "exit $exit_val", but instead just "echo $exit_val"? Or do I still need that exit statement in my function?
9,469
Posted By eur0dad
bash: executing commands and reading exit vals
I have a function that returns a bunch of exit codes, say func1, and in my code I'm trying to execute that function in an if statement. This is the closest I could get.

f1call=`func1 $arg1 $arg2`...
59,782
Posted By eur0dad
it works beautifully! much thanks!
it works beautifully! much thanks!
59,782
Posted By eur0dad
perl split function for bash?
Hi! I'm doing bash shell scripting and would like to know if bash had something similar to perl's split function? Ultimately, I want to split two strings (delimeter = '.') and compare each of their...
Showing results 1 to 6 of 6

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