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 > Unix Shell astericks
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Unix Shell astericks

Réponse
 
LinkBack Outils de la discussion
Vieux 24/03/2008, 22h10   #1
ushi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Unix Shell astericks

why do you use two "**" together,

For Eample:
app.config.excludes.prod=**/log4j.dev.xml **/log4j.qa.xml **/
log4j.stg.xml **/log4j.ito.xml


Thanks
  Réponse avec citation
Vieux 25/03/2008, 00h21   #2
Javi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix Shell astericks

On 24 mar, 22:10, ushi <azhar....@gmail.com> wrote:
> why do you use two "**" together,
>
> For Eample:
> app.config.excludes.prod=**/log4j.dev.xml **/log4j.qa.xml **/
> log4j.stg.xml **/log4j.ito.xml
>
> Thanks


I can't remember where I read ** says like * but with possible '/'
embembed, like multiple directories expansion allowed. I suppose same
programs uses it (not bash).
  Réponse avec citation
Vieux 25/03/2008, 01h47   #3
James Michael Fultz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix Shell astericks

* ushi <azhar.rao@gmail.com>:
> why do you use two "**" together,
>
> For Eample:
> app.config.excludes.prod=**/log4j.dev.xml **/log4j.qa.xml **/
> log4j.stg.xml **/log4j.ito.xml
>
>
> Thanks


Zsh interprets '**/' as a globbing operator that expands recursively. I
am unaware of other usages, but they may exist.

--
James Michael Fultz <xyzzy@sent.as.invalid>
Remove this part when replying ^^^^^^^^
  Réponse avec citation
Vieux 25/03/2008, 15h01   #4
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix Shell astericks

2008-03-24, 19:47(-05), James Michael Fultz:
> * ushi <azhar.rao@gmail.com>:
>> why do you use two "**" together,
>>
>> For Eample:
>> app.config.excludes.prod=**/log4j.dev.xml **/log4j.qa.xml **/
>> log4j.stg.xml **/log4j.ito.xml

[...]
> Zsh interprets '**/' as a globbing operator that expands recursively. I
> am unaware of other usages, but they may exist.


**/ in zsh is a shortcut for (*/)# (that is 0 or more level of
subdirectories)

Recent versions of ksh93 also support ** with set -G, but it's
slightly different (** in ksh93 is **/* in zsh for instance, so
** is more like "any path"). ksh93 doesn't support *** (for
recursing into symlinks to directories as well) nor globbing
qualifiers.

In other shells, ** is like *.

--
Stéphane
  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 14h14.


É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,11153 seconds with 12 queries