in awk or shell we trust

in awk or shell we trust

am 13.11.2007 08:19:45 von franzi

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

Re: in awk or shell we trust

am 13.11.2007 08:31:31 von Janis Papanagnou

On 13 Nov., 08:19, franzi 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

Re: in awk or shell we trust

am 13.11.2007 12:31:11 von Maxwell Lol

franzi 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?

Re: in awk or shell we trust

am 13.11.2007 13:44:12 von franzi

On 13 Nov, 12:31, Maxwell Lol wrote:
> franzi 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

Re: in awk or shell we trust

am 13.11.2007 13:44:41 von franzi

On 13 Nov, 08:31, Janis wrote:
> On 13 Nov., 08:19, franzi 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

Re: in awk or shell we trust

am 13.11.2007 16:39:10 von Janis Papanagnou

franzi wrote:
> On 13 Nov, 08:31, Janis wrote:
>
>>On 13 Nov., 08:19, franzi 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

Re: in awk or shell we trust

am 13.11.2007 16:57:26 von cfajohnson

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
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

Re: in awk or shell we trust

am 13.11.2007 17:36:03 von Maxwell Lol

franzi writes:

> On 13 Nov, 12:31, Maxwell Lol wrote:
> > franzi 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

Re: in awk or shell we trust

am 13.11.2007 20:11:42 von Bill Marcum

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?
> 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".

Re: in awk or shell we trust

am 14.11.2007 08:07:36 von franzi

On 13 Nov, 20:11, Bill Marcum wrote:
> 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?
> > 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