pipe
This commit is contained in:
parent
71d31d22d8
commit
e3fa929cd7
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function get_name {
|
|||
function get_cpu_count {
|
||||
while read -r line; do
|
||||
if echo $line | grep 'cpu-count' > /dev/null; then
|
||||
anzahl_cpu=$(echo $line grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]')
|
||||
anzahl_cpu=$(echo $line | grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]')
|
||||
fi
|
||||
done <<< "$data"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue