|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 *** |
|
![]() |
| Outils de la discussion | |
|
|