Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-Apr-2008, 04:09
Yerra
Guest
 
Posts: n/a
Default

Hello friends,
this is yerra i am using openSUSE10.3,i am getting problems with regular expressions in shell,regular expresions are Not working for shell based commands as comapared to Fedora

ex:-man pthread_mutex* should giveone among the man pages for the functions like pthread_mutex_lock etc.


Kindly give the solution
  #2 (permalink)  
Old 04-Apr-2008, 04:23
ken_yap
Guest
 
Posts: n/a
Default

Doesn't work that way because REs are evaluated wrt the filesystem.

pthread_mutex* is not a file, it is the name of a man page. So there is no list of filenames to evaluate the RE against.
  #3 (permalink)  
Old 04-Apr-2008, 05:15
Hro
Guest
 
Posts: n/a
Default

For 'man' the usable option is apropos, see 'man man'.

Code:
~> man -k pthread_mutex
pthread_mutex_destroy (3p) - destroy and initialize a mutex
pthread_mutex_getprioceiling (3p) - get and set the priority ceiling of a mutex (REALTIME THREADS)
pthread_mutex_init (3p) - destroy and initialize a mutex
pthread_mutex_lock (3p) - lock and unlock a mutex
pthread_mutex_setprioceiling (3p) - get and set the priority ceiling of a mutex (REALTIME THREADS)
pthread_mutex_timedlock (3p) - lock a mutex (ADVANCED REALTIME)
// more and more lines follow
~>
 

Bookmarks

Thread Tools
Display Modes

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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2