⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comparehc

📁 大名鼎鼎的传感器网络仿真实验室平台SENSE
💻
字号:
#! /bin/bashif [ $# -ne 1 ]; then    echo "usage: $0 <fileName>"    exit 1;fiinFile=$1temp=compareHC.tempgrep SP $inFile > $tempsort -k 2 $temp > SPawk '{gsub(";", " ", $0); printf( ": %s SP %d\n", $2, $5)}' SP > $temp.1grep VR $inFile > $tempsort -t \; -k 3 $temp > VRawk -F\; '{ printf( "%s %s %s %s\n", $1, $3, $5, $6)}' VR > $temp.2awk '{ gsub("{", " ", $0); gsub("}", " ", $0); printf( "%s VR %d %d\n", $3, $4, $5)}' $temp.2 >> $temp.1sort -k 1 $temp.1 > $temp.3awk -v RS=: '{ if (NF == 7) {printf( "%s SP %d VR %d %d", $1, $3, $6, $7); if( $6 != $7) printf( " [mismatch]"); if( $7 > $3) printf( " [TTL exceeded]"); if( $6 == $3) printf( " [at max distance]"); printf( "\n")}}' $temp.3 > $1.HCrm $temp $temp.2 $temp.1 $temp.3 SP VR

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -