Search Results

Search: Posts Made By: boy18nj
1,124
Posted By boy18nj
cool. thanks.
cool. thanks.
1,124
Posted By boy18nj
Understanding PATH variable setting?
I do know how we set the PATH variable-


export PATH=$JAVA_HOME/bin:$PATH


I'm trying to understand why we have written :$PATH in the end above statement. What is it's meaning?
65,508
Posted By boy18nj
This is so cool. Thanks Does this means I am...
This is so cool. Thanks

Does this means I am not innovative or dumb...I know how to script...why this stuff did not come to my mind?

There is a one way to know, can you tell me how did you...
65,508
Posted By boy18nj
How to run multiple command in a single line?
Normally i would do this-

cd abc
ls -ltr

I wish to run above command in a single line, like this-

cd abc | ls -ltr

But above command doesn't works, it simply runs the second command,...
2,223
Posted By boy18nj
Scott, Thank you. You are the real expert. As I...
Scott, Thank you. You are the real expert. As I am a java programmer, I thought it will work this way-

result=$(times)

It will call times function and the return value will go in variable...
2,223
Posted By boy18nj
oh g8t, I changed the name it worked. But also 1...
oh g8t, I changed the name it worked. But also 1 more thing to notice here is, it did not echo the value of global variable.

the value of result
2,223
Posted By boy18nj
In bash getting weird output from function ?
My script-
result=""
times()
{
echo "inside the times function"
result=8
echo "Inside function $result"
return $result
}
result=$(times)
echo "the value is "$?
echo "the value of result...
3,853
Posted By boy18nj
What is #0 ?
In this below function, I am trying to understand what is the purpose of
H1=${H1#0} ?
This is ksh. Any improvement to below function are also appreciated.


dateDiff(){
echo enter first...
2,482
Posted By boy18nj
Bash Script equivalent KSH script?
I always find BASH easier than ksh. At my home, i have written this bash script. I am finding it hard to write its equivalent in ksh, any suggestions?


######################################...
19,744
Posted By boy18nj
In ksh find out the timestamp of current date?
Normally we can use %s to find out the time in second since 1970.
But in my ksh, this format option is not available.

Example- date +%s
1268103151

above script command won't work in ksh. Can...
Showing results 1 to 10 of 10

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