1
00:00:01,080 --> 00:00:09,450
Definitely in ARC fields are separated by space basically by string which contains one space.

2
00:00:10,050 --> 00:00:17,850
But if we can change that using field separator so fields can be separated by for example comma or dot

3
00:00:18,060 --> 00:00:18,820
or whatever.

4
00:00:18,820 --> 00:00:25,520
Tell us if it passed output of eco commands to one two three four in two or command.

5
00:00:26,010 --> 00:00:36,570
In the BEGIN section before starting to sing any records we can set new value to f s to field separator.

6
00:00:36,660 --> 00:00:41,930
For example we can set it to string two

7
00:00:45,620 --> 00:00:53,840
and we'll print first two fields divided by space

8
00:01:11,030 --> 00:01:20,870
and Lissi printed one as the first field and then three four as the second field strength do is not

9
00:01:20,880 --> 00:01:25,310
printed as it is now field separator.

10
00:01:25,310 --> 00:01:32,210
Now let's check how Basford file looks like we see dead on each line.

11
00:01:32,280 --> 00:01:35,280
Fields separated by column.

12
00:01:35,570 --> 00:01:43,890
So we can change differently set field separator from space to call on in awk begin.

13
00:01:43,920 --> 00:01:44,420
Section

14
00:01:50,850 --> 00:02:02,760
so pass the output of passport file into awk program and in BEGIN section we will change fields separator

15
00:02:09,290 --> 00:02:10,160
to clone

16
00:02:14,570 --> 00:02:18,630
and in the main a section which is process for each record.

17
00:02:18,740 --> 00:02:31,390
We can print first field and seven field which would be name and show so print dollar sign one dollar

18
00:02:31,390 --> 00:02:41,210
sign seven.

19
00:02:41,370 --> 00:02:51,420
And as it is working we see only a name and show are pretty amazing because changing field separator

20
00:02:51,540 --> 00:02:54,750
is one of the most used feature in awk.

21
00:02:54,750 --> 00:02:59,470
We can do that much easily using a command line option.

22
00:02:59,730 --> 00:03:00,530
Desch F.

23
00:03:10,560 --> 00:03:14,750
So we just type f and inside double quotation marks.

24
00:03:14,770 --> 00:03:17,370
We just put the new value of field separator

25
00:03:20,770 --> 00:03:28,510
and we can print here for each record first and let's say Surt field

26
00:03:33,560 --> 00:03:34,340
and great.

27
00:03:34,370 --> 00:03:35,970
It works perfectly.
