The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



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
Sed-Special character replacement usshell Shell Programming and Scripting 3 05-22-2008 10:06 AM
sed and special character in data MizzGail Shell Programming and Scripting 3 01-23-2008 03:45 PM
special character on Filename.. help!!!urgent genzbeat HP-UX 1 01-18-2008 03:55 PM
convert special character like £ cynnie Shell Programming and Scripting 1 08-08-2007 06:37 AM
Special character in my file Ryan2786 UNIX for Dummies Questions & Answers 3 07-05-2007 11:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-19-2004
mile1982 mile1982 is offline
Registered User
  
 

Join Date: Sep 2004
Location: Down Under
Posts: 11
special character ?

hey there

im a bit stuck on executing commands that include the special character '?'. can someone recommend a way on how i would be able to execute it?? i thought the glob function could be useful (still mite be) but upon entering the command
'ls pars?' it listed all the files in the directory instead of only those that the first four letter are pars.

help would be appreciated.
mile1982
  #2 (permalink)  
Old 10-19-2004
S.P.Prasad S.P.Prasad is offline
Registered User
  
 

Join Date: Jan 2002
Location: India
Posts: 111
I don't think '?' is treated as a metacharacter in a regular expression. The match routines would then literally search for a '?' at the desired location. Try using '.' instead of '?'.

Hope this helps.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0