Pls examine this...
grep -B 1 ^$ | egrep 'Enter|@|SQL RUN' dat
Enter value for authid: 560000
SQL RUN TIME--- 22-12-2008 13:57:29
@lienup.sql SELECTED VALUE
Enter value for authid: 560000
SQL RUN TIME--- 22-12-2008 13:57:29
@lienup.sql SELECTED VALUE
...........................................
before.....every first one (ie Enter valur for authid ..)
i should get blank line
thx in advance
Quote:
Originally Posted by
reddyrajal
sorry command is
grep -B 1 ^$ file | egrep 'x|Y|Z'
can u post sample data