source:
issm/trunk/scripts/errlog_process.sh@
2010
| Last change on this file since 2010 was 2010, checked in by , 17 years ago | |
|---|---|
|
|
| File size: 205 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/bash |
| 2 | |
| 3 | #first get rank we want to keep. |
| 4 | rank=`cat $1 | awk 'NR==1' | sed 's/==/ /'g | awk '{printf("%s\n",$1);}'` |
| 5 | |
| 6 | #now only keep lines with this rank |
| 7 | cat $1 | grep "==$rank==" > $1.bak |
| 8 | mv $1.bak $1 |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)