fedora-sysv / initscripts

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

spec: Replace not working awk command with sed #387

Closed jamacku closed 2 years ago

jamacku commented 2 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

(cherry picked from commit bfda3cc2acdea827909e6c89bda5bbb5140cda6c)