A list of nice findings for Kubernetes List all images in Helm chart images=$(helm template -g $helm |yq -N '..|.image? | select(. == "*" and . != null)'|sort|uniq|grep ":"|egrep -v '*:[[:blank:]]' || echo "") upload images listed in an Helm chart load_helm_images(){ # look in helm charts for helm in $(ls...
The Basics awk is treat each line as a table, by default space are separators of columns. General syntax is awk 'search {action}' file_to_parse. # Give the value higher than 75000 in column $4 df | awk '$4 > 75000' # Print the all line when column $4 is higher than 75000 df | awk '$4 > 75000 {print $0}' But if you...
The Basics sed -e '…' -e '…' # Several execution sed -i # Replace in place sed -r # Play with REGEX # The most usefull sed -e '/^[ ]*#/d' -e '/^$/d' <fich.> # openfile without empty or commented lines sed 's/ -/\n -/g' # replace all "-" with new lines sed 's/my_match.*/ /g' # remove from the match till end of line sed...