I have a file name coming in as such
<string>_YYYYMMDD.DAT
The string could be anything. I want to cut out the date and put it in a variable. Can someone help me with this? (4 Replies)
Hi,
I wanted to cut a specific portion from given string. How would I do that?
Example:
/u09/core/inbound/abc.txt is my string.
I want abc.txt in a variable.
Please help me.
Regards,
Dhaval (3 Replies)
I just have a couple of quick questions.
I am having trouble with this cut. I am basically trying to cut the string so that i can insert the users guess at the appropriate point in the string.
$letters is the character count of the $word.
What it seems to do is cut the character into the... (0 Replies)
Hi
I'm creating a script that creates files from svn checkout and compress them using tar.gz
the script gets the repository name from command line argument
i need to capture a number from the last line of the output and create a file name from it.
the svn returns output of all the file... (5 Replies)
Hi all
I have a string variable ${WHERE_SQL1} where i want to cut the first value of a variable.
Eg ${WHERE_SQL1} = 'Where a.id =.................'
I the string to be 'a.id =.......'
Thanks in advance (2 Replies)
Hi All,
I have a string in the following format
"abcd | fghfh | qwer | ertete"
I need to cut the values in the following format
line1 = abcd | fghfh | qwer
line2 = ertete
Simply speaking a want to cut all the values before the last delimiter from the line and print it on one line and... (11 Replies)
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
I was trying the below statement if
It is working fine if I run it in a test file.
but not working, when I am trying in my actual script.
Error:
: "${FXML_line:1129:1}": bad substitution
Thanks in advance :)
PS: Above if block I have a while loop which is reading a... (4 Replies)
Hello
I have a script:
path=test1
echo "${path%?}"
till this the program is successful in deleting hte last character i.e. "1" and displays an output --> test. After this how can i save this output to another variable. (2 Replies)
Hi ,
I have a set of files in a folder which i need to cut in to two parts....
Sample files
touch AE_JUNFOR_2014_MTD_2013-05-30-03-30-02.TXT
touch AE_JUNFOR_2014_YTD_2013-05-30-03-30-02.TXT
touch temp_AE_JUNFOR_2014_MTD_2013-05-30-03-30-02.TXT
touch... (4 Replies)
Discussion started by: chillblue
4 Replies
LEARN ABOUT REDHAT
raw2hdf
raw2hdf(1) Emulators raw2hdf(1)NAME
raw2hdf - Create an .hdf hard disk image from a raw data file
SYNOPSIS
raw2hdf rawfile hdffile
DESCRIPTION
raw2hdf converts a binary dump of a hard disk's data into an IDE disk image in .hdf format for use with Sinclair ZX Spectrum emulators.
OPTIONS -v version
specifies the version of .hdf image to be created. Valid values are `1.0' for a version 1.0 file and `1.1' for a version 1.1 file.
Defaults to creating version 1.1 files.
rawfile
specifies a raw data file (or block device corresponding to an actual disk) to be converted.
hdffile
specifies the .hdf file to create.
NOTES
Since raw2hdf has no knowledge of the geometry of the disk from which the original image was taken (indeed, the input file need not origi-
nate from a real IDE disk at all), there is no guarantee that the information contained in the .hdf file header accurately represents the
original disk. However, it will attempt to construct a header that is consistent with the size of the image, to produce an .hdf file which
is functionally equivalent.
BUGS
None known.
SEE ALSO fuse(1), fuse-utils(1), libspectrum(3)
The .hdf format specification, at
http://www.ramsoft.bbk.org/hdfform.html.
The comp.sys.sinclair Spectrum FAQ, at
http://www.worldofspectrum.org/faq/index.html.
AUTHOR
Matthew Westcott (matthew@west.co.tt).
Version 1.0.0 16th December, 2010 raw2hdf(1)