![]() |
Hello and Welcome from United States 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 |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exract string between two different characters | rein | Shell Programming and Scripting | 11 | 05-07-2008 10:01 AM |
| Add string after another string with special characters | heliode | Shell Programming and Scripting | 2 | 03-21-2008 08:06 AM |
| Invalid Characters in the file. | kanu_pathak | UNIX for Dummies Questions & Answers | 15 | 02-04-2008 08:10 AM |
| Invalid Characters in the file. | kanu_pathak | Shell Programming and Scripting | 5 | 02-01-2008 09:45 AM |
| Removing characters from end of $string | craig2k | Shell Programming and Scripting | 3 | 03-25-2003 10:38 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
string with invalid characters
This is a pretty straight-forward question. Within a program of mine, I have a string that's going to be used as a filename, but it might have some invalid characters in it that wouldn't be valid in a filename. If there are any invalid characters, I want to get rid of them and essentially squeeze the remaining characters together to form a valid filename.
I can't seem to find any string function that might help to assist in making this a more efficient than simply checking the string char by char, moving the valid chars into another string while ignoring the invalid ones, creating a valid filename. Just thought I'd ask and see what kind of input I would receive. Thank you. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|