Search Results

Search: Posts Made By: PranavEcstasy
2,199
Posted By balajesuri
You may need to install the threads module...
You may need to install the threads module (http://search.cpan.org/~jdhedden/threads-1.86/lib/threads.pm).
2,199
Posted By balajesuri
push (@threads, $t1) and push (@threads, $t2) ==>...
push (@threads, $t1) and push (@threads, $t2) ==> This will create thread objects and push its references into array @threads.

join() will give you the return value from a thread. I see that from...
17,791
Posted By vbe
"$@" is all the positional parameters as...
"$@" is all the positional parameters as separate strings
"$*" is all the positional parameters as one single string...
17,791
Posted By surendran
Command line arguments for addition
Please try the code below:

add=0
for i in $*
do
add=`expr $i + $add`
done
echo "sum is : $add"

sh a 12 32 14 25
sum is : 83


Please view this code tag video...
17,791
Posted By elixir_sinari
Which shell? I'd written that code for ksh93.
Which shell? I'd written that code for ksh93.
17,791
Posted By Arun_Linux
This too should work.. hope this is simple.. ...
This too should work.. hope this is simple..

add=0
for i in $@
do
add=`expr $i + $add`
done
echo "sum is: $add"

./add.sh 1 4 5
sum is: 10
1,194
Posted By vgersh99
Everything in awk has the form condition{action}....
Everything in awk has the form condition{action}. If the condition evaluates to 1 then the action is performed. If the condition is omitted then the default condition is 1, so the action is always...
1,194
Posted By elixir_sinari
Check this post...
Check this post (https://www.unix.com/shell-programming-scripting/191053-remove-l-character-file-2.html#post302660293).
1,658
Posted By elixir_sinari
awk ' NR==1{for(i=1;i<=NF;i++) h[i]=$i; next} ...
awk '
NR==1{for(i=1;i<=NF;i++) h[i]=$i; next}
{
for(i=2;i<=NF;i++)
print h[1] "=" $1 "/attribute=" h[i] "/value=" $i
}' record.txt
Showing results 1 to 9 of 9

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