PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > in awk or shell we trust
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

in awk or shell we trust

Réponse
 
LinkBack Outils de la discussion
Vieux 13/11/2007, 07h19   #1
franzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

  Réponse avec citation
Vieux 13/11/2007, 07h31   #2
Janis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

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

  Réponse avec citation
Vieux 13/11/2007, 11h31   #3
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

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


  Réponse avec citation
Vieux 13/11/2007, 12h44   #4
franzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

On 13 Nov, 12:31, Maxwell Lol <nos...@com.invalid> wrote:
> franzi <hazz...@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

  Réponse avec citation
Vieux 13/11/2007, 12h44   #5
franzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

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

  Réponse avec citation
Vieux 13/11/2007, 15h39   #6
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

franzi wrote:
> On 13 Nov, 08:31, Janis <janis_papanag...@hotmail.com> wrote:
>
>>On 13 Nov., 08:19, franzi <hazz...@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
  Réponse avec citation
Vieux 13/11/2007, 15h57   #7
Chris F.A. Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 13/11/2007, 16h36   #8
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

franzi <hazzino@gmail.com> writes:

> On 13 Nov, 12:31, Maxwell Lol <nos...@com.invalid> wrote:
> > franzi <hazz...@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

  Réponse avec citation
Vieux 13/11/2007, 19h11   #9
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

On 2007-11-13, franzi <hazzino@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".
  Réponse avec citation
Vieux 14/11/2007, 07h07   #10
franzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: in awk or shell we trust

On 13 Nov, 20:11, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 2007-11-13, franzi <hazz...@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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18620 seconds with 18 queries