Linux shell scripting: sed part 2

Published: 30 May 2021
on channel: Kodhai Linux
47
7

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


On this page of the site you can watch the video online Linux shell scripting: sed part 2 with a duration of hours minute second in good quality, which was uploaded by the user Kodhai Linux 30 May 2021, share the link with friends and acquaintances, this video has already been watched 47 times on youtube and it was liked by 7 viewers. Enjoy your viewing!