人生意义在于积累,而不是日复一日的重复
分类: LINUX
2014-05-15 11:18:32
11
21
11
09
23
12
129
212
1024
32
129
x=212
awk -F"\t" '{
if ($1 > "'"$x"'")
print $1"\t>\t""'"$x"'";
else
print $1"\t<=\t""'"$x"'";
}' input
1 <= 212
21 <= 212
11 <= 212
09 <= 212
23 > 212
12 <= 212
129 <= 212
212 <= 212
1024 <= 212
32 > 212
awk -F"\t" '{
if ($1 > "'$x'")
print $1"\t>\t""'"$x"'";
else
print $1"\t<=\t""'"$x"'";
}' input
1 <= 212
21 <= 212
11 <= 212
09 <= 212
23 > 212
12 <= 212
129 <= 212
212 <= 212
1024 <= 212
32 > 212
awk -F"\t" '{
if ($1 > '"$x"')
print $1"\t>\t""'"$x"'";
else
print $1"\t<=\t""'"$x"'";
}' input
1 <= 212
21 <= 212
11 <= 212
09 <= 212
23 <= 212
12 <= 212
129 <= 212
212 <= 212
1024 > 212
32 <= 212