Hello,
Can somebody help me on the below.
i am trying to write a bash script in my linux red hat system in order to do the follow
i have the below text file, lets say "file1.txt" and i want my script (script1.sh) to extract two specific values, and these two values to be used in another script (script2.sh)
file1.txt
text 1 in to use............ ............... ...15243
text 2 in to use............ ............... ...A
text 3 in to use............ ............... ...OR
text 4 in to use............ ............... ...UNLL
text 5 in to use............ ............... ...1
text 6 in to use............ ............... ...N
text 7 in to use............ ............... ...00BN/12345D
text 8 in to use............ ............... ...ABC
text 9 in to use............ ............... ...11ADF/123E
text 10 in to use............ ............... ..N
text 11 in to use............ ............... ..N
text 15 in to use............ ............... ..07/12
text 16 in to use............ ............... ..17-96
text 17 in to use............ ............... ..Y
how to use script1.sh to read file1.txt and get in the 7th line the value "12345" with out "D", and in the 9th line the "123" value with out "E".
these two values i need to use in script2.sh
thank you,
daku
Can somebody help me on the below.
i am trying to write a bash script in my linux red hat system in order to do the follow
i have the below text file, lets say "file1.txt" and i want my script (script1.sh) to extract two specific values, and these two values to be used in another script (script2.sh)
file1.txt
text 1 in to use............ ............... ...15243
text 2 in to use............ ............... ...A
text 3 in to use............ ............... ...OR
text 4 in to use............ ............... ...UNLL
text 5 in to use............ ............... ...1
text 6 in to use............ ............... ...N
text 7 in to use............ ............... ...00BN/12345D
text 8 in to use............ ............... ...ABC
text 9 in to use............ ............... ...11ADF/123E
text 10 in to use............ ............... ..N
text 11 in to use............ ............... ..N
text 15 in to use............ ............... ..07/12
text 16 in to use............ ............... ..17-96
text 17 in to use............ ............... ..Y
how to use script1.sh to read file1.txt and get in the 7th line the value "12345" with out "D", and in the 9th line the "123" value with out "E".
these two values i need to use in script2.sh
thank you,
daku
Comment