neuralnode
Technical User
Hi All,
I've been meditating in a remote cave for a thousand years over the following problem.
I have two files.
File param_list contains:
/dev/ip ip_forward_src_routed
/dev/ip ip_respond_to_timestamp
/dev/tcp tcp_rev_src_routes
(please note there is a blank space after /dev/ip)
File param_values contains, e.g.:
0
1
2048
Now what I'm trying to accomplish is to create a third text file with corresponding lines appended, which should look like:
/dev/ip ip_forward_src_routed 0
/dev/ip ip_respond_to_timestamp 1
/dev/tcp tcp_rev_src_routes 2048
I guess I'll have to use "read" within a while loop, like:
while read -r listline
do
read -r valline < param_values
echo "${line} ${pline}"
done < param_list
But it doesn't work. Maybe some awk or sed expression would help?
Any ideas?
Thx
I've been meditating in a remote cave for a thousand years over the following problem.
I have two files.
File param_list contains:
/dev/ip ip_forward_src_routed
/dev/ip ip_respond_to_timestamp
/dev/tcp tcp_rev_src_routes
(please note there is a blank space after /dev/ip)
File param_values contains, e.g.:
0
1
2048
Now what I'm trying to accomplish is to create a third text file with corresponding lines appended, which should look like:
/dev/ip ip_forward_src_routed 0
/dev/ip ip_respond_to_timestamp 1
/dev/tcp tcp_rev_src_routes 2048
I guess I'll have to use "read" within a while loop, like:
while read -r listline
do
read -r valline < param_values
echo "${line} ${pline}"
done < param_list
But it doesn't work. Maybe some awk or sed expression would help?
Any ideas?
Thx