9 lines
217 B
Bash
Executable file
9 lines
217 B
Bash
Executable file
#!/bin/sh
|
|
# this script is slow on large yamls
|
|
# TODO: rewrite in vimscript
|
|
|
|
file=$1
|
|
line1=$2
|
|
line2=$3
|
|
|
|
awk 'NR>'$line1' && /kind:/ {printf "%s/", $2}; NR>'$line1' && /name: / {$1=""; printf "%s", $0; exit 0}' <$file
|