Linux Shell Scripting: sed part 2
1) Work with extended regular expressions.
2) Edit a configuration file with sed from a shell script.
sed -r 's/(\/[^:]*).*/\1/g' # Try for different kinds of input lines with and without g switch.
sed -r 's/\([^:]*\).*/\1/' # Try this out for different kinds of input strings.
sed -r 's/(^\|[^0-9.])([0-9]+)([0-9]{3})/\1\2,\3/g' # Try for diff input strings.
#shellscripting #sedcommand #regularexpressions #extendedregularexpressions #EREs #editconfigurationfile