Я работаю на следующий сценарий Баш:Баш AWK первый 1-й столбец и 3-ю колонку со всем после
# contents of dbfake file
1 100% file 1
2 99% file name 2
3 100% file name 3
#!/bin/bash
# cat out data
cat dbfake |
# select lines containing 100%
grep 100% |
# print the first and third columns
awk '{print $1, $3}' |
# echo out id and file name and log
xargs -rI % sh -c '{ echo %; echo "%" >> "fake.log"; }'
exit 0
Этот скрипт работает нормально, но как все в колонке $ 3, а затем все столбцы после печати?