Search Results

Search: Posts Made By: 915086731
Forum: IP Networking 10-18-2017
7,324
Posted By Corona688
Your kernel and your module disagree on what...
Your kernel and your module disagree on what members nf_conn has.

The structure of nf_conn matters to the entire netfilter chain, you can't change it without recompiling your entire kernel.
Forum: Programming 05-30-2014
3,362
Posted By Perderabo
First, take a long hard long at the currdisk...
First, take a long hard long at the currdisk structure. If there is any chance that (double)currdisk->currangle and (double)currdisk->rotatetime overlap that is your problem. Having these overlap...
1,876
Posted By jayan_jay
Yes ..
Yes ..
1,876
Posted By qcmao
In this codeif [ `echo "$1 > $2" | bc -l` -eq 1...
In this codeif [ `echo "$1 > $2" | bc -l` -eq 1 -a `echo "$1 < $3" | bc -l` -eq 1 ]
the meaning of parameter "-a" is "and" operator?
1,876
Posted By yazu
ksh93, bash, zsh: if (( $2 < $1 && $1 < $3));...
ksh93, bash, zsh:
if (( $2 < $1 && $1 < $3)); then
echo Ok
else
echo False
done

===

Well, bash doesn't work with floating numbers. Then
if [[ ! $temp0 =~ ^- && $temp1 =~ ^- ]]; then ...
1,876
Posted By sulti
Try this: if [ `echo "$1 > $2" | bc -l` -eq 1...
Try this:
if [ `echo "$1 > $2" | bc -l` -eq 1 -a `echo "$1 < $3" | bc -l` -eq 1 ]; then
echo OK
else
echo False
fi
11,195
Posted By radoulov
Different languages implement regular expressions...
Different languages implement regular expressions differently, you should check the manual pages of your shell.

This is bash:

4.1.10(4)-release$ [[ 123 =~ [0-9] ]] && echo ok || echo ko
ok...
5,447
Posted By alister
Some AWKs' regular expression flavor may not...
Some AWKs' regular expression flavor may not support interval expressions (in your example, the {4} part), even though the standard has stated (for at least 15 years) that AWK's regular expression...
2,216
Posted By ahamed101
[[ "aabaab" =~ aaa*b ]] && echo "ok" || echo...
[[ "aabaab" =~ aaa*b ]] && echo "ok" || echo "error"
Here, when you include *, it means 0 or more and that is why its matching. It will basically look for aab or aaab or aaaaab etc

[[ "aabaab"...
2,216
Posted By birei
Why do you think it shouldn't match? I think...
Why do you think it shouldn't match?

I think that the substring 'ab' is in 'aab'.

Regards,
Birei
2,216
Posted By yazu
Oh, Bash. Well, when you quote the right part of...
Oh, Bash. Well, when you quote the right part of `=~' operator you get string, not a regex. And part of string is matched the whole string.
$ [[ "aab" =~ a*b ]] && echo "ok" || echo "error"
ok
$...
2,216
Posted By birei
Hi, When using metacharacters in a regular...
Hi,

When using metacharacters in a regular expression, remove quotes:

$ [[ "aab" =~ a*b ]] && echo "ok" || echo "error";
ok
$ [[ "aab" =~ a.b ]] && echo "ok" || echo "error";
ok
Regards,...
1,073
Posted By bartus11
Well, it seems to me that your first example is...
Well, it seems to me that your first example is setting FS after first line has been divided into fields using default separator (space). It is analogous to:grep -n -E "drive 1\b" inv_dbg |awk...
1,073
Posted By bartus11
You are defining field separator in a weird way...
You are defining field separator in a weird way in the first code. Second example is legit, but it is usually done like this:grep -n -E "drive 1\b" inv_dbg | awk -F":" '{ print $1}'
Showing results 1 to 14 of 14

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