source:
ccr2ccd-xslt/trunk/make/SimpleTestScript.sh@
1806
Last change on this file since 1806 was 1004, checked in by , 14 years ago | |
---|---|
File size: 391 bytes |
Rev | Line | |
---|---|---|
[1004] | 1 | #!/bin/bash |
2 | #MyFile="PAT_100904_QRDA_V1_0_0-11-03-2010_20.xml" | |
3 | ||
4 | for MyFile in $(ls -1 PAT_*_QRDA_V1_0_0-11-03-2010_20.xml); | |
5 | do | |
6 | SBL=$(grep -n "structuredBody" "$MyFile" | awk -F: '{ print $1 }') | |
7 | echo "the structuredBody line is $SBL" | |
8 | echo "$((SBL+1)) is the first line to delete" | |
9 | echo "$((SBL+2)) is the second line to delete" | |
10 | echo "a is $a" | |
11 | echo "b is $b" | |
12 | #sed -in "$a","$b"d "$MyFile" | |
13 | done |
Note:
See TracBrowser
for help on using the repository browser.