mirror of
https://github.com/MatMoul/dokytree.git
synced 2024-12-24 08:36:11 +00:00
13 lines
270 B
Bash
13 lines
270 B
Bash
#!/bin/bash
|
|
|
|
declare -r FILE=${1}
|
|
declare -r NUMSTART=${2}
|
|
declare -r NUMEND=${3}
|
|
declare -r NUM=${4}
|
|
declare -r NUMDIFF=$((NUMSTART + NUM - NUMSTART))
|
|
|
|
# Custom code
|
|
# sed -i "/^name:/c\name: 'crazy-${NUM}'" "${FILE}"
|
|
IP=$((230 + NUMDIFF))
|
|
sed -i s/YY/${IP}/ "${FILE}"
|