The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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
stupid ftp question tyiannak UNIX for Dummies Questions & Answers 2 03-01-2007 12:28 AM
One stupid question Andrey Malishev UNIX for Dummies Questions & Answers 2 12-11-2006 09:34 AM
Sorry! Stupid question, but... starscream UNIX for Dummies Questions & Answers 2 03-07-2006 03:14 AM
Stupid question Bab00shka UNIX for Dummies Questions & Answers 2 05-03-2002 11:53 AM
Stupid Question? jskillet UNIX for Dummies Questions & Answers 9 04-26-2001 11:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-26-2002
sskb
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Lightbulb sorry if this is a stupid question

Hi All,

just a thought

is it possible to make the shell read the following command

$
$*pdf to list all pdf ($ls *.pdf)

and

$*htm as ($ls *.htm)

Thanks for the inputs

  #2 (permalink)  
Old 03-26-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Do you saying to alias "*pdf" to "ls *pdf"? Well, I'm going to have to lean to no, here's why:
When you type *pdf, the shell is going to try to execute everything ending in pdf. But if you escape the * with \, then the \ will also remove the meaning of the alias. It's a no-win situation.

Maybe you could try something else, like "alias lpdf='ls -d *pdf'"...
  #3 (permalink)  
Old 03-26-2002
sskb
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
thanks LivinFree,
well, here i get some wild thoughts..

is it possible to have a program that runs on the shell which can identify some strings like this and execute them.. and if something else comes, just pass it on to the shell.

This is just a thought, eventhough I do not have much idea on compilers, I think of developing such a thing. Is that possible?

Thanks again.
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 02:34 PM.


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