![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question on Regular Expression | Katkota | UNIX for Dummies Questions & Answers | 14 | 05-18-2008 06:11 PM |
| Regular Expression question | Katkota | UNIX for Dummies Questions & Answers | 6 | 05-14-2008 04:23 PM |
| Variable regular expresion in awk. | Klashxx | Shell Programming and Scripting | 4 | 08-31-2006 03:17 AM |
| Regular Expression Question | Krispy | UNIX for Dummies Questions & Answers | 3 | 01-20-2006 10:36 AM |
| question about regular expression | brentdeback | Shell Programming and Scripting | 0 | 11-14-2005 04:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
regular expresion question
I receive windows files via the internet on my solaris server. Since unix doesn't handle blanks well I change the blanks to ? which works just fine. I take these files and ftp them to windows so our analysts can work with them. Recently I received a file with the following structure:
/xxxxx/xxxxx/xxxxx/name_fn_894983489 #2 name2.csv my shell converted that to: /xxxxx/xxxxx/xxxxx/name_fn_894983489?#2?name2.csv and my ftp failed. Actually it didn't but the way I get the file from the server it comes in on to the server my shell is running on is: rsh cat file.name > localfile and the cat failed. However when I tried to cat or ls it on the server it resided on it worked. But when I tried to cat or ls it with a rsh it couldn't find the file. That # sign looked questionable so I looked into it and it looks like I'm probably telling it to suppress two bytes of the name. So my question is does the rsh cause the # sign to resolve whereas if I'm on the server it won't? Does anyone know how this works? |
|
|||||
|
Quote:
in the names of a file. In case you are putting a ? in the name of a file and FTP it you can (as JazzyBob suggested) place an underscore in the name of the file as against a ? Cheers |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|