Search Results

Search: Posts Made By: boaz733
1,176
Posted By boaz733
i actully managed to solve it with a loop: it...
i actully managed to solve it with a loop:
it might be ugly but it works.

#!/bin/bash
x=`wc -l < datafile`
while [ $x -ge 1 ]
do
sed -n '/starting/{:L;N; /close/bK; bL; :K;p;q}'...
1,176
Posted By boaz733
Print text between 2 strings for the entire file
hey guys,

for the following output:
starting
open
open
close
close
starting
close
starting
open
close
close
starting
open
open
close
open
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy