Using sed instead of awk

Also adjustments to line length