Search Results

Search: Posts Made By: sunnix
1,286
Posted By sunnix
I didn't get anyoutput in that case
I didn't get anyoutput in that case
1,286
Posted By sunnix
Need to find a string in files
Hi,

I have a directory nsk,
files a.sql, b.sql, c.sql, d.sql,

assuming that I have line 'INSERT ALL INTO abc' in a.sql and c.sql

I need to list a filename, line number and complete line...
1,511
Posted By sunnix
Yes that's working, how to make it work by using...
Yes that's working, how to make it work by using expr, can you please let me know,

Thanks,
1,511
Posted By sunnix
Thanks, but am getting output as Sum = 20 + 10, ...
Thanks, but am getting output as Sum = 20 + 10,

How to resolve this,

I have given all the below three, but in Vain,

$num_sum=`expr $1 + $2'
$num_sum="expr $1 + $2"
$num_sum='expr $1 +...
1,511
Posted By sunnix
Error with Expression
Hi All,

am trying to add two Inputs i.e., $1 and $2,

Code
#!/bin/sh
$num_sum=`expr $1+$2`
echo "Sum = $num_sum"

am giving statement sh arithemetic.sh 20 10

am getting error
...
1,408
Posted By sunnix
Thanks Pludi, it worked,
Thanks Pludi, it worked,
1,408
Posted By sunnix
Error while using if..fi
Hi All,

am new to Shell Scripting, started learning Online, Can you please help me with the below issue, when am trying to run below lines of code

Script Name: sample.sh

Script:
...
Showing results 1 to 7 of 7

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