나름대로 인터넷을 뒤져도 답이 안보여서 고수님들께 조언을 청합니다..
bash script내에서
awk 'NR%10==1 {printf"%6d\n",$1}' test > 1
awk 'NR%10==2 {printf"%6d\n",$1}' test > 2
awk 'NR%10==3 {printf"%6d\n",$1}' test > 3
awk 'NR%10==4 {printf"%6d\n",$1}' test > 4
...
awk 'NR%10==0 {printf"%6d\n",$1}' test > 0
를 구현하려고 아래처럼 했는데
[code:1]
for i in 1 2 3 4 5 6 7 8 9 0
do
echo|awk 'NR%10==$i {printf"%6d\n",$1}' $1 > $i