Using sed and replacing the first matching line only
3,862 views · Published 18 March 2017 · 7:32 · Indexed 26 October 2026
Channel: theurbanpenguin · 2017 · Education
Sometime you only want to replace the first maching line with sed not all the lines. We show you using the time configuration file for Chrony how we can replace the first server entry leaving the other in place. Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com
More from this channel
-
8:44
Bash History Demo
-
8:39
A bash script to backup the MBR of all drives
-
9:40
Using SQUID to implement time restrictions . Captions Avaiable
-
6:24
Creating Desktop Shortcuts
-
8:58
Scripting Apache Virtual Hosts
-
5:25
Accessing The Linux Command Line
-
8:42
Managing Global Gnome Settings
-
2:40
NFSv4 Crossmnt Option