Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th April 2006, 09:56 PM
Ospreyeagle Offline
Registered User
 
Join Date: Jul 2005
Posts: 59
unix question: user supplied input for 'alias'

I have a program to scan the log files and I want to pipe the output to 'less'.

I want to create an alias such that following are equivalent

scanlog chunky.lst = /udd/n2man/utils/scanlog chunky.lst|less

where chunky is user supplied file which can change.

Is this possible as an alias or do I need to create a script?

thanks,
OE

ps: Sorry for rather uninformative title.
Reply With Quote
  #2  
Old 11th April 2006, 11:00 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,857
To do what you want with an alias, you would need to find a way to write the command so it ended with chunky.lst instead of "| less". Perhaps someone knows a clever way to do that (define a function and execute it in some long command, perhaps.) It is simpler to write a script,
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
Reply

Tags
alias, input, question, supplied, unix, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General Unix Question gibbs_wesley Using Fedora 1 19th April 2009 04:56 AM
getting PHP CLI user input CD-RW Programming & Packaging 4 9th July 2007 10:16 AM
sudo question (host alias) arc2v Using Fedora 2 23rd June 2005 01:37 PM
i would like some user input here agentblue Using Fedora 10 10th June 2005 03:10 PM


Current GMT-time: 09:50 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat