Search Results

Search: Posts Made By: rolex.mp
13,038
Posted By rolex.mp
thanks it works
thanks it works
13,038
Posted By rolex.mp
check whether variable number or string
I am passing an argument to a file and i wanna check whether the argument is a number or string ?
how can i do this?
28,824
Posted By rolex.mp
Commenting lines
How to comment a set of lines in a script?

we use # to comment a single line , is there ant other cmd to comment a block?
3,031
Posted By rolex.mp
thanks it works can u explain me what...
thanks it works

can u explain me what ${x%-*}
${x#*-}

does?
3,031
Posted By rolex.mp
Parsing string
I am passing argument 1-13 to a sh file.

I want to parse the string and the get the numbers on either side of "-" in two different variables.

I am not familiar with unix .. how can i do this?
33,833
Posted By rolex.mp
concatenating string and variable
how to concatenate a string and variable like

a=rahul

and i want to put it into another variable 'b' as "rahul_prasath"

i dont want to use another variable for "_prasath"

how to do it?
7,382
Posted By rolex.mp
Suppressing output to the screen
I want to check whether the variable read from the console is number or character , so i used echo $option|grep [0-9] and checked the reuslt returned by grep cmd using $?

But since I use echo the...
Showing results 1 to 7 of 7

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