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

create txt file form data file and add some line on it

$
0
0
Hi Guys,

I have file A.txt

Code:

File A Data

AK1521
AK2536
AK3164

I want create text file of all data above and write some data on each file.

want Output on below folder
/home/kka/out

Code:

AK1521.txt
Code:

Hi
Welocme
File Name =AK1521_4A_1 no=10
File Name =AK1521_4B_1 no=10
File Name =AK1521_4C_1 no=10
Bye

Code:

AK2536.txt
Code:

Hi
Welocme
File Name =AK2536_4A_1 no=10
File Name =AK2536_4B_1 no=10
File Name =AK2536_4C_1 no=10
Bye

Code:

AK3164.txt
Code:

Hi
Welocme
File Name =AK3164_4A_1 no=10
File Name =AK3146_4B_1 no=10
File Name =AK3146_4C_1 no=10
Bye


Viewing all articles
Browse latest Browse all 16232

Trending Articles