[clug] using 'dd' in a pipeline
Scott Ferguson
scott.ferguson.clug at gmail.com
Mon Nov 24 01:29:47 MST 2014
>> On 24 Nov 2014, at 6:50 pm, John Mills <johnmi at effect.net.au> wrote:
> On 24/11/14 19:03, steve jenkin wrote:
>> Can you point out where the variable 'blocks' is set in your script?
> It wasn’t.
> good catch.
Indeed - I missed that, though I had thought of suggesting, as a matter
of practise, that you either change the case or variables - or change
the name re:conflict between variables, built-ins and system commands
e.g. size
Another thought I considered mentioning - is that jpegs contain all
sorts of problematic characters[*1], of special note may be those that
can be conflated with end of record and end of file.
[*1]hence my suggestion to search for the traditional jpeg end of image
characters - which is not perfect e.g. when dealing with compression
and/or thumbnail inserts.
>
> I was using command line directly to create the script fragment and didn’t create & properly test the script.
>
Kind regards
More information about the linux
mailing list