how to perform by sed in order to print the line until ";" character
echo "NUMBER = 3247 FULL DUPLEX ; speed=343 434 " | sed .....
need the following output
NUMBER = 3247 FULL DUPLEX
|
how to perform by sed in order to print the line until ";" character
need the following output NUMBER = 3247 FULL DUPLEX
| ||||
|
feedback
|
|
Why don't you use awk for this? i.e.
And if you really need the " in front, use
EDIT: After feedback (see comments below), here the correct version with sed:
| |||||||||||
feedback
|
|
Use
Note that the semicolon is excaped with a backslash so that your shell won't misinterpret the semicolon as the end of the command. | |||
|
feedback
|