in awk or shell we trust

Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
Afterhours
Then i tried to mount it and view the inside files but no way.
So is there a awk command or shell to view what's inside an image?
Thanks in advance
franzi [ Di, 13 November 2007 08:19 ] [ ID #1869005 ]

Re: in awk or shell we trust

On 13 Nov., 08:19, franzi <hazz... [at] gmail.com> wrote:
> Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/

Is that '-' as part of the input file path intentional?

> Afterhours
> Then i tried to mount it and view the inside files but no way.

If you create an output file you need not mount the output file, it
should be readable.

> So is there a awk command or shell to view what's inside an image?
> Thanks in advance

Do you want to read/mount the device or the file?

Janis
Janis Papanagnou [ Di, 13 November 2007 08:31 ] [ ID #1869007 ]

Re: in awk or shell we trust

franzi <hazzino [at] gmail.com> writes:

> So is there a awk command or shell to view what's inside an image?

awk is very good at looking for patterns in ASCII.
Do you expect to see ASCII information inside a wave file?
Maxwell Lol [ Di, 13 November 2007 12:31 ] [ ID #1869015 ]

Re: in awk or shell we trust

On 13 Nov, 12:31, Maxwell Lol <nos... [at] com.invalid> wrote:
> franzi <hazz... [at] gmail.com> writes:
> > So is there a awk command or shell to view what's inside an image?
>
> awk is very good at looking for patterns in ASCII.
> Do you expect to see ASCII information inside a wave file?

at the beginning of the file yes
franzi [ Di, 13 November 2007 13:44 ] [ ID #1869017 ]

Re: in awk or shell we trust

On 13 Nov, 08:31, Janis <janis_papanag... [at] hotmail.com> wrote:
> On 13 Nov., 08:19, franzi <hazz... [at] gmail.com> wrote:
>
> > Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
>
> Is that '-' as part of the input file path intentional?
>
> > Afterhours
> > Then i tried to mount it and view the inside files but no way.
>
> If you create an output file you need not mount the output file, it
> should be readable.
>
> > So is there a awk command or shell to view what's inside an image?
> > Thanks in advance
>
> Do you want to read/mount the device or the file?
>
> Janis
just the files
franzi [ Di, 13 November 2007 13:44 ] [ ID #1869018 ]

Re: in awk or shell we trust

franzi wrote:
> On 13 Nov, 08:31, Janis <janis_papanag... [at] hotmail.com> wrote:
>
>>On 13 Nov., 08:19, franzi <hazz... [at] gmail.com> wrote:
>>
>>
>>>Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
>>
>>Is that '-' as part of the input file path intentional?
>>
>>
>>>Afterhours
>>>Then i tried to mount it and view the inside files but no way.
>>
>>If you create an output file you need not mount the output file, it
>>should be readable.
>>
>>
>>>So is there a awk command or shell to view what's inside an image?
>>>Thanks in advance
>>
>>Do you want to read/mount the device or the file?
>>
>>Janis
>
> just the files
>

Use the strings(1) command to extract text from binaries, or use any
editor (like vim) that won't complain about displaying binary files.

Janis
Janis Papanagnou [ Di, 13 November 2007 16:39 ] [ ID #1869024 ]

Re: in awk or shell we trust

On 2007-11-13, franzi wrote:
>
>
> Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
> Afterhours
> Then i tried to mount it and view the inside files but no way.
> So is there a awk command or shell to view what's inside an image?

You can print ASCII strings from a binary file with the 'strings'
command.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell/>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
cfajohnson [ Di, 13 November 2007 16:57 ] [ ID #1869025 ]

Re: in awk or shell we trust

franzi <hazzino [at] gmail.com> writes:

> On 13 Nov, 12:31, Maxwell Lol <nos... [at] com.invalid> wrote:
> > franzi <hazz... [at] gmail.com> writes:
> > > So is there a awk command or shell to view what's inside an image?
> >
> > awk is very good at looking for patterns in ASCII.
> > Do you expect to see ASCII information inside a wave file?
>
> at the beginning of the file yes

It might be easier to just type
file xxx.wav

I get something like:

xxx.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11025 Hz
Maxwell Lol [ Di, 13 November 2007 17:36 ] [ ID #1869027 ]

Re: in awk or shell we trust

On 2007-11-13, franzi <hazzino [at] gmail.com> wrote:
> Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
> Afterhours
> Then i tried to mount it and view the inside files but no way.
> So is there a awk command or shell to view what's inside an image?
> Thanks in advance
>
There are no standard Unix commands for this, but your system might have
commands to rip files from an audio cd. Try "apropos audio".
Bill Marcum [ Di, 13 November 2007 20:11 ] [ ID #1869032 ]

Re: in awk or shell we trust

On 13 Nov, 20:11, Bill Marcum <marcumb... [at] bellsouth.net> wrote:
> On 2007-11-13, franzi <hazz... [at] gmail.com> wrote:> Hi all i made an image of an audio cd dd if=-/dev/disk1 of=/home/
> > Afterhours
> > Then i tried to mount it and view the inside files but no way.
> > So is there a awk command or shell to view what's inside an image?
> > Thanks in advance
>
> There are no standard Unix commands for this, but your system might have
> commands to rip files from an audio cd. Try "apropos audio".

Thanks to all
franzi [ Mi, 14 November 2007 08:07 ] [ ID #1869961 ]
Linux » comp.unix.shell » in awk or shell we trust

Vorheriges Thema: a simple but strange problem
Nächstes Thema: Exclude directory in recursive copy