There are several ways to do this job.
sed can do the work:
$ cat
read can do the work too:
$ while read c1 c2 c3 rest; do echo $c1, $c2, $c3, $rest; done <
awk can also do the work:
$ cat
There are several ways to do this job.
sed can do the work:
$ cat
read can do the work too:
$ while read c1 c2 c3 rest; do echo $c1, $c2, $c3, $rest; done <
awk can also do the work:
$ cat