File: flow.arrive.awk

package info (click to toggle)
ns2 2.35%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 78,796 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (14 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
if ($1 != t) {
   print $1, $5, $2, $3, $4
} else {
  if (($2 != s) || ($3 != u) || ($4 != v)) {
   print $1, $5, $2, $3, $4
  }
}
t=$1
s=$2
u=$3
v=$4
r=$5
}