Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to copy set of lines n times?

$
0
0
I have a file with following data
Code:

A
B
C

I would like to print like this n times(For eg:n times)
Code:

A
B
C
A
B
C
A
B
C
A
B
C
A
B
C
A
B
C
.
.
.
A
B
C

Code:

My shell is csh
Also this may be achieved using
Code:

cat file file file .... file > newfile
But i need other solution apart from using cat command

Viewing all articles
Browse latest Browse all 16232

Trending Articles