I am looking for an example of how to open .DAT in the Unix bash shell script and then extract a particular variable from that .DAT file into a different file.
: this is how this function was done in VAX DCL code
open/read indat myfile.dat
read/end_of_file=endit indat var1
if f$search("mydir1:file2.s''var2'") .nes. " "
Any examples or comments on how this might be done in the Unix bash shell script will be greatly appreciated!!