<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Tue May 21, 2013 2:51 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Tue May 21, 2013 2:51 pm</pubDate>
  <lastBuildDate>Tue May 21, 2013 2:51 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109859#109859</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 03, 2013 12:06 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi DM...&lt;br /&gt;
&lt;br /&gt;
As your advice bears no relevance to my original post I will let you find the ROM images for Current Macbook Pro Intel 64 bit architecture...&lt;br /&gt;
&lt;br /&gt;
I await your finding the binar(y)(ies) with eagerness... ;oO</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109859#109859</comments>
                                        <author>Bazza</author>
                                        <pubDate>Thu Jan 03, 2013 12:06 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109859#109859</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109855#109855</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 03, 2013 12:11 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Wot, you say you can't d/l an image from some place? &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109855#109855</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Thu Jan 03, 2013 12:11 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109855#109855</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109853#109853</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 10:50 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi DM...&lt;br /&gt;
&lt;br /&gt;
Grabbing a partial BIOS image is dead easy but not on a Macbook Pro though... &amp;lt;BIG WINK&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CYA...</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109853#109853</comments>
                                        <author>Bazza</author>
                                        <pubDate>Wed Jan 02, 2013 10:50 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109853#109853</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109852#109852</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 10:40 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi nelz...&lt;br /&gt;
&lt;br /&gt;
Point taken, Mr Pedantic... &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Having said that, I tried running it with sh, bash and zsh abd&lt;br /&gt;
&amp;gt; the result was always the same. I think towy is just being&lt;br /&gt;
&amp;gt; difficult &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
I saw his winky smiley after 'HTH' and was unsure how to take&lt;br /&gt;
it so maybe you are right... ;o)&lt;br /&gt;
&lt;br /&gt;
CYA...</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109852#109852</comments>
                                        <author>Bazza</author>
                                        <pubDate>Wed Jan 02, 2013 10:40 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109852#109852</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109850#109850</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 9:59 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Bazza wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Remember, I was using only a Macbook Pro and the default shell is BASH.&lt;br /&gt;
&lt;br /&gt;
I hadn't even noticed the BASH part though, as the default shell for the many flavours of Linux I have used, IIRC, have been BASHes...&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
The default shell is irrelevant because you have specified /bin/sh in the shebang line. Although this is often a symlink to /bin/bash, bash behaves as a pure POSIX shell when called like this, not as bash. So your script is a shell script, not a bash script.&lt;br /&gt;
&lt;br /&gt;
Having said that, I tried running it with sh, bash and zsh abd the result was always the same. I think towy is just being difficult &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109850#109850</comments>
                                        <author>nelz</author>
                                        <pubDate>Wed Jan 02, 2013 9:59 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109850#109850</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109849#109849</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 9:51 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Executable bit (not) set? Perhaps the binary file has too much resemblance of a text file? Try grabbing a section of a BIOS image, that's machine code for sure &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109849#109849</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Wed Jan 02, 2013 9:51 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109849#109849</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109848#109848</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 9:39 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi nelz...&lt;br /&gt;
&lt;br /&gt;
Remember, I was using only a Macbook Pro and the default shell is BASH.&lt;br /&gt;
&lt;br /&gt;
I hadn't even noticed the BASH part though, as the default shell for the many flavours of Linux I have used, IIRC, have been BASHes...&lt;br /&gt;
&lt;br /&gt;
If I am wrong then I stand corrected...&lt;br /&gt;
&lt;br /&gt;
However, towy's setup did NOT work so my code is NOT fully portable. So it is either my code that is wrong or towy's shell/terminal is doing something wrong. Either way something is not correct and I have no idea why the DAT file is NOT being saved as a binary file but instead it is a text file...&lt;br /&gt;
&lt;br /&gt;
Any ideas?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109848#109848</comments>
                                        <author>Bazza</author>
                                        <pubDate>Wed Jan 02, 2013 9:39 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109848#109848</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109847#109847</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 7:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Bazza wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;This is a BASH script that saves and retrieves binary data.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;# !/bin/sh&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
See! It's shell script&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Bazza wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Please give you Linux flavour and the Shell/Terminal you use...&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
It shouldn't matter which distro you use, nor which terminal, because /bin/sh calls your shell program in POSIX compliant mode. That's about as portable as it gets. You really shouldn't specify bash for a script unless you actually need bash extras, like arrays.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109847#109847</comments>
                                        <author>nelz</author>
                                        <pubDate>Wed Jan 02, 2013 7:55 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109847#109847</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109845#109845</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=19718'&gt;Bruno&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 7:48 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I don't know if it makes a difference, but you've put a space between the &amp;quot;#&amp;quot; and the &amp;quot;!&amp;quot; of the shebang in your script. I've not seen this done anywhere else.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109845#109845</comments>
                                        <author>Bruno</author>
                                        <pubDate>Wed Jan 02, 2013 7:48 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109845#109845</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109840#109840</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jan 02, 2013 5:47 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi guys and gals who tried this out...&lt;br /&gt;
&lt;br /&gt;
Update...&lt;br /&gt;
&lt;br /&gt;
It also works on PCLinuxOS 2009 and Debian 6.0.x; neat.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109840#109840</comments>
                                        <author>Bazza</author>
                                        <pubDate>Wed Jan 02, 2013 5:47 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109840#109840</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109818#109818</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 01, 2013 12:44 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi nelz and MBF...&lt;br /&gt;
&lt;br /&gt;
Cool, thanks for trying...&lt;br /&gt;
&lt;br /&gt;
I cannot guess why towy71's does not work. You two have cheered me up bo end...&lt;br /&gt;
&lt;br /&gt;
When I am back at work I will try it out on Debian and PCLinuxOS 2009...&lt;br /&gt;
&lt;br /&gt;
Again thanks mateys...&lt;br /&gt;
&lt;br /&gt;
EDIT:&lt;br /&gt;
Wonder if a real time _text_mode_ audioscope is a possibility from say /dev/dsp in Linux mode now? ;o)</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109818#109818</comments>
                                        <author>Bazza</author>
                                        <pubDate>Tue Jan 01, 2013 12:44 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109818#109818</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109817#109817</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2793'&gt;MartyBartfast&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 01, 2013 10:55 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Fedora 17, XFCE Terminal Emulator 0.4.8&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
~/tmp$ bash Bin2Hex2Dec.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$VER&amp;#58; Bin2Hex2Dec.sh_Version_0.00.10_Public_Domain_B.Walker_G0LCU.&lt;br /&gt;
&lt;br /&gt;
Generate and save a binary file, display a hexadecimal dump of that file,&lt;br /&gt;
select a single byte from this binary file, display as adecimal number in&lt;br /&gt;
string format then add this string number to another number...&lt;br /&gt;
&lt;br /&gt;
Offset.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hexadecimal dump.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASCII dump.&lt;br /&gt;
00000000&amp;nbsp; 00 07 0a 0d 7f 28 43 29&amp;nbsp; 32 30 31 32 2c 20 42 2e&amp;nbsp; |.....&amp;#40;C&amp;#41;2012, B.|&lt;br /&gt;
00000010&amp;nbsp; 57 61 6c 6b 65 72 2c 20&amp;nbsp; 47 30 4c 43 55 2e 80 ff&amp;nbsp; |Walker, G0LCU...|&lt;br /&gt;
00000020&lt;br /&gt;
&lt;br /&gt;
Now obtain the _byte_ from offset 0, the first byte, &amp;#40;0x00&amp;#41;, single&lt;br /&gt;
byte length, already converted to a decimal string from hexadecimal...&lt;br /&gt;
&lt;br /&gt;
Decimal value in string format = 0...&lt;br /&gt;
&lt;br /&gt;
Now ADD a number 7 to the decoded decimal string. 0 + 7 = 7...&lt;br /&gt;
&lt;br /&gt;
&amp;#40;Now edit the script and change the _variable_ ~subscript~ to another value.&amp;#41;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109817#109817</comments>
                                        <author>MartyBartfast</author>
                                        <pubDate>Tue Jan 01, 2013 10:55 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109817#109817</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109816#109816</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 01, 2013 10:32 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;$VER&amp;#58; Bin2Hex2Dec.sh_Version_0.00.10_Public_Domain_B.Walker_G0LCU.&lt;br /&gt;
&lt;br /&gt;
Generate and save a binary file, display a hexadecimal dump of that file,&lt;br /&gt;
select a single byte from this binary file, display as adecimal number in&lt;br /&gt;
string format then add this string number to another number...&lt;br /&gt;
&lt;br /&gt;
Offset.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hexadecimal dump.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASCII dump.&lt;br /&gt;
00000000&amp;nbsp; 00 07 0a 0d 7f 28 43 29&amp;nbsp; 32 30 31 32 2c 20 42 2e&amp;nbsp; |.....&amp;#40;C&amp;#41;2012, B.|&lt;br /&gt;
00000010&amp;nbsp; 57 61 6c 6b 65 72 2c 20&amp;nbsp; 47 30 4c 43 55 2e 80 ff&amp;nbsp; |Walker, G0LCU..ÿ|&lt;br /&gt;
00000020&lt;br /&gt;
&lt;br /&gt;
Now obtain the _byte_ from offset 0, the first byte, &amp;#40;0x00&amp;#41;, single&lt;br /&gt;
byte length, already converted to a decimal string from hexadecimal...&lt;br /&gt;
&lt;br /&gt;
Decimal value in string format = 0...&lt;br /&gt;
&lt;br /&gt;
Now ADD a number 7 to the decoded decimal string. 0 + 7 = 7...&lt;br /&gt;
&lt;br /&gt;
&amp;#40;Now edit the script and change the _variable_ ~subscript~ to another value.&amp;#41;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
I get the same output whether I run it with sh, zsh or bash.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109816#109816</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Jan 01, 2013 10:32 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109816#109816</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109803#109803</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Dec 30, 2012 3:14 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks towy71...&lt;br /&gt;
&lt;br /&gt;
First failure... ;o(&lt;br /&gt;
&lt;br /&gt;
It should look like this...&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$VER&amp;#58; Bin2Hex2Dec.sh_Version_0.00.10_Public_Domain_B.Walker_G0LCU.&lt;br /&gt;
&lt;br /&gt;
Generate and save a binary file, display a hexadecimal dump of that file,&lt;br /&gt;
select a single byte from this binary file, display as adecimal number in&lt;br /&gt;
string format then add this string number to another number...&lt;br /&gt;
&lt;br /&gt;
Offset.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hexadecimal dump.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASCII dump.&lt;br /&gt;
00000000&amp;nbsp; 00 07 0a 0d 7f 28 43 29&amp;nbsp; 32 30 31 32 2c 20 42 2e&amp;nbsp; |.....&amp;#40;C&amp;#41;2012, B.|&lt;br /&gt;
00000010&amp;nbsp; 57 61 6c 6b 65 72 2c 20&amp;nbsp; 47 30 4c 43 55 2e 80 ff&amp;nbsp; |Walker, G0LCU...|&lt;br /&gt;
00000020&lt;br /&gt;
&lt;br /&gt;
Now obtain the _byte_ from offset 0, the first byte, &amp;#40;0x00&amp;#41;, single&lt;br /&gt;
byte length, already converted to a decimal string from hexadecimal...&lt;br /&gt;
&lt;br /&gt;
Decimal value in string format = 0...&lt;br /&gt;
&lt;br /&gt;
Now ADD a number 7 to the decoded decimal string. 0 + 7 = 7...&lt;br /&gt;
&lt;br /&gt;
&amp;#40;Now edit the script and change the _variable_ ~subscript~ to another value.&amp;#41;&lt;br /&gt;
&lt;br /&gt;
Barrys-MacBook-Pro&amp;#58;~ barrywalker$ &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Making something platform independent is SOOOO bloody difficult...</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109803#109803</comments>
                                        <author>Bazza</author>
                                        <pubDate>Sun Dec 30, 2012 3:14 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109803#109803</guid>
                                      </item>
                                      <item>
                                        <title>Re: Help needed...</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109802#109802</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=39'&gt;towy71&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Dec 30, 2012 1:57 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      xubuntu 12.10 Xfce Terminal Emulator Terminal 0.4.8&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;dicky@matilda&amp;#58;~$ sh Bin2Hex2Dec.sh &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$VER&amp;#58; Bin2Hex2Dec.sh_Version_0.00.10_Public_Domain_B.Walker_G0LCU.&lt;br /&gt;
&lt;br /&gt;
Generate and save a binary file, display a hexadecimal dump of that file,&lt;br /&gt;
select a single byte from this binary file, display as adecimal number in&lt;br /&gt;
string format then add this string number to another number...&lt;br /&gt;
&lt;br /&gt;
Offset.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hexadecimal dump.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASCII dump.&lt;br /&gt;
00000000&amp;nbsp; 5c 78 30 30 5c 78 30 37&amp;nbsp; 5c 78 30 41 5c 78 30 44&amp;nbsp; |\x00\x07\x0A\x0D|&lt;br /&gt;
00000010&amp;nbsp; 5c 78 37 46 28 43 29 32&amp;nbsp; 30 31 32 2c 20 42 2e 57&amp;nbsp; |\x7F&amp;#40;C&amp;#41;2012, B.W|&lt;br /&gt;
00000020&amp;nbsp; 61 6c 6b 65 72 2c 20 47&amp;nbsp; 30 4c 43 55 2e 5c 78 38&amp;nbsp; |alker, G0LCU.\x8|&lt;br /&gt;
00000030&amp;nbsp; 30 5c 78 46 46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |0\xFF|&lt;br /&gt;
00000035&lt;br /&gt;
&lt;br /&gt;
Now obtain the _byte_ from offset 0, the first byte, &amp;#40;0x00&amp;#41;, single&lt;br /&gt;
byte length, already converted to a decimal string from hexadecimal...&lt;br /&gt;
&lt;br /&gt;
Decimal value in string format = 92...&lt;br /&gt;
&lt;br /&gt;
Now ADD a number 7 to the decoded decimal string. 92 + 7 = 99...&lt;br /&gt;
&lt;br /&gt;
&amp;#40;Now edit the script and change the _variable_ ~subscript~ to another value.&amp;#41;&lt;br /&gt;
&lt;br /&gt;
dicky@matilda&amp;#58;~$ &lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
HTH  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109802#109802</comments>
                                        <author>towy71</author>
                                        <pubDate>Sun Dec 30, 2012 1:57 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109802#109802</guid>
                                      </item></channel></rss>