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

Script to expand characters

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2007, 14h10   #1
jdoe987@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Script to expand characters

Does anyone know of a script or a a method I could use to read a file
and match the expression
(needs to be expanded). I have a bunch of file names which have been
condensed and spaces removed. I need to find the files in a bunch of
subdirectories - plan on using find. However, as you can see the
issue is that the "real" file name has spaces, etc.

File I have
01.2007sentPS.xls

Actual File name
01.2007\ sent\ PS.xls

  Réponse avec citation
Vieux 17/05/2007, 00h49   #2
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script to expand characters

In article <1179321025.540556.69320@l77g2000hsb.googlegroups. com>,
jdoe987@gmail.com wrote:

> Does anyone know of a script or a a method I could use to read a file
> and match the expression
> (needs to be expanded). I have a bunch of file names which have been
> condensed and spaces removed. I need to find the files in a bunch of
> subdirectories - plan on using find. However, as you can see the
> issue is that the "real" file name has spaces, etc.
>
> File I have
> 01.2007sentPS.xls
>
> Actual File name
> 01.2007\ sent\ PS.xls


How is this script supposed to know where the spaces need to be added?
Is there some way it can tell that the above filename should be expanded
as you show, and not

01.200 7sentP S.xls

? If you can provide the mapping rule, we should be able to tell you
how to script it.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  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 02h30.


É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,08355 seconds with 10 queries