hi friends,
i have a file where every word is present in a new line for example:
more file1:
i want to fetch previous line wherever i am getting "as" as a keyword.
i tried at home the follwing code in linex:
grep -B 1 "as" file1
ouput:
caste
caste1
it was working!!
but now i am working on ksh88. its not working . i am getting error as :
grep: illegal option -- B
Usage: grep -hblcnsviw pattern file . . .
that mean this option is not there in ksh88. is there any replacement for this command.