Search Results

Search: Posts Made By: uniran
3,479
Posted By Don Cragun
Maybe! It depends. If any member of the...
Maybe! It depends.

If any member of the exec family of functions succeeds, it replaces the current process image with a new executable process. There is no return from that new image because the...
616
Posted By Don Cragun
Did you notice the $2 that I marked in red in...
Did you notice the $2 that I marked in red in your script? Do you see that the test is looking for a file named by the 2nd command-line argument passed to your script?

What happens if you change...
1,030
Posted By Corona688
Exactly what you think it is. You have it a bit...
Exactly what you think it is. You have it a bit backwards, I think - sem_wait is what's responsible for making threads sleep. If the resource is busy, sem_wait makes you sleep, if the resource is...
651
Posted By vgersh99
the numbers appear twice because there're 2 &-s...
the numbers appear twice because there're 2 &-s separated by www.
echo "123 abc" | sed 's/[0-9]*/& www &/'
637
Posted By Scrutinizer
Like RudiC mentioned, x=$1 Assigns the value of...
Like RudiC mentioned, x=$1 Assigns the value of the first parameter with which the script is called to variable x
After this there are 5 iterations that add a number to variable x
So in the end...
637
Posted By RudiC
That obviously is a (bourne) shell function. As...
That obviously is a (bourne) shell function. As you don't mention your shell's version, bash assumed.

man bash:During expansion, the "multiword character" of $1 is lost, and the shell makes up...
Showing results 1 to 6 of 6

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