Bash - an odd problem using sed or awk or for

Greg Woods woods at ucar.edu
Sat Dec 1 04:37:20 UTC 2012


On Thu, 2012-11-29 at 23:33 +0000, John Horne wrote:

> ============ (the '=' are not part of the variable)
> abc def
> 
> hijk
> xyz
> ============
> 
> So in this case what is wanted is:
> 
> ============
> hijk
> xyz
> ============
> 
> to be shown.

echo "$XX" | sed -e '1,/^$/d'



More information about the users mailing list