i have a file called number which contains data as
1 2 3 4 5
6 7 8 9 0
9 8 7 6 5
4 3 2 1 0
0 1 2 3 4
needed a shell script to print the output as
1
7
7
1
4
and
1 2 3 4 5
6 7 8 9
9 8 7
4 3
0
i have a file called number which contains data as
1 2 3 4 5
6 7 8 9 0
9 8 7 6 5
4 3 2 1 0
0 1 2 3 4
needed a shell script to print the output as
1
7
7
1
4
and
1 2 3 4 5
6 7 8 9
9 8 7
4 3
0
what have you tried with your homework?
have u tried with awk array?
or even simpler:
echo "1 2 3 4 5
6 7 8 9
9 8 7
4 3
0"