Search Results

Search: Posts Made By: Gaurav198
2,664
Posted By siva shankar
in ur code replace as state3=`expr $state3 -...
in ur code replace as

state3=`expr $state3 - $ct`
2,664
Posted By balajesuri
# s=0;while read x;do s=$(($s + $x));done <...
# s=0;while read x;do s=$(($s + $x));done < file.txt;echo $((8725 - $s))
287
2,664
Posted By siva shankar
change the below line and execute... while...
change the below line and execute...

while read ct

its not $ct
2,664
Posted By zaxxon
Also use code tags when posting error logs,...
Also use code tags when posting error logs, example data, code snippets, thanks. Indention of code can also be useful.

Remove the $:

while read ct
3,384
Posted By durden_tyler
While there are a couple of ways to pass the...
While there are a couple of ways to pass the shell variables to a Perl one-liner, you may be better off with a proper Perl program. You pass parameters just like you would to a shell script.


$...
281,536
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 6 of 6

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