Search Results

Search: Posts Made By: sriharsha_kvr
3,370
Posted By sriharsha_kvr
Before sending mail, put all your statements into...
Before sending mail, put all your statements into one file and then cat the file. Try the following.....

if condition=0: then
echo "service is not running" > Result
fi
sleep 10

if...
2,012
Posted By sriharsha_kvr
Try this... awk 'BEGIN { NR =1 } {print...
Try this...

awk 'BEGIN { NR =1 } {print "SSS_move " $1 " GROUP - " int(NR / 2) }' <Your output File>
4,980
Posted By sriharsha_kvr
Can you give me one example....
Can you give me one example....
2,386
Posted By sriharsha_kvr
Looks like there is a problem with the below...
Looks like there is a problem with the below statement.

value = expr (inside_value/1000)*value;

Try this way

value=`expr $inside_value / 1000 \* $value`
3,203
Posted By sriharsha_kvr
Try this command ..... grep -v `who | tr -s...
Try this command .....

grep -v `who | tr -s " " | cut -d" " -f1` /etc/passwd | awk -F":" '{print $1}'
9,794
Posted By sriharsha_kvr
Just have a look at below code. I assume that the...
Just have a look at below code. I assume that the Errors are logged in log.txt

grep -w "ERROR" log.txt | cut -d" " -f1,2,3 > ErrLog.txt

if [ -s ErrLog.txt ]
then
echo "Has Errors"
else...
2,797
Posted By sriharsha_kvr
To print the results in a file, you may use the...
To print the results in a file, you may use the below command
ftp -i -n $HOST <<EOF > FileName
2,797
Posted By sriharsha_kvr
Try below script. Assign the appropriate values...
Try below script. Assign the appropriate values to the variables. mget fetches the multiple files with the specified condition.

#!/usr/bin/ksh

HOST='Your_Host_To_Connect'
USER='USER_ID'...
4,531
Posted By sriharsha_kvr
Try this command... fgrep -vf File2 File1 >...
Try this command...

fgrep -vf File2 File1 > File3
12,277
Posted By sriharsha_kvr
This should work find . 2>/dev/null | xargs...
This should work

find . 2>/dev/null | xargs grep -w framework | cut -d ":" -f1 | uniq -d
12,277
Posted By sriharsha_kvr
Sorry....The below code will not work as per the...
Sorry....The below code will not work as per the requirement :(

Try using -w option with grep. If you want the search to be extended in multiple files, try the following command

find ....
Showing results 1 to 11 of 11

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