fedora-sysv / initscripts

📜 Scripts to bring up network interfaces and legacy utilities in Fedora.
GNU General Public License v2.0
47 stars 52 forks source link

Replace not working awk command with sed #258

Closed jamacku closed 5 years ago

jamacku commented 5 years ago

Sed command get version number from spec file and increment last number by one. Work like old awk command was intended to work.

Source: https://stackoverflow.com/questions/14348432/how-to-find-replace-and-increment-a-matched-number-with-sed-awk/14348899