Quote:
Originally Posted by rosv
Sed proved to be more difficult than I thought.
Any suggestions?
|
because sed is based on regular expressions. if you are not familiar, get familiar otherwise, using simple methods (KISS) will suffice.
Code:
# echo "john@somewhere.com" | awk -F"@" '{print $1}'
john
# echo "john@somewhere.com" | cut -d@ -f1
john