i have one problem please solve it:
i have directory name a40001,a40002...............
in each directory there is file in sequence like this
like this there is many more files.
all .dat file are signal files ,.hea files are header files.
i have to write script which covert all signal file(.dat) into .txt file or .csv file.
please respond to this query it's urgent requried.
I moved your post into a new thread as it had nothing to do with the thread you posted in.
What have you tried so far?
Does the data in each file need altering in any way?
Have you tried just looping through the directories and files and just renaming each one?
I appreciate it's urgent but why did your boss assign the task to you?
Many readers wish to convert binary data from PhysioBank (PhysioNet's data archive) into text form for further processing.
Signals such as ECGs, blood pressure waveforms, and other continuously recorded physiologic signals
The tool for converting signals to text is rdsamp
usage: rdsamp -r RECORD [OPTIONS ...]
where RECORD is the name of the input record, and OPTIONS may include:
-f TIME begin at specified time
-h print this usage summary
-H read multifrequency signals in high resolution mode
-l INTERVAL truncate output after the specified time interval (hh:mm:ss)
-p print times and samples in physical units (default: raw units)
-s SIGNAL [SIGNAL ...] print only the specified signal(s)
-t TIME stop at specified time
-v print column headings