LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2004, 03:42 PM   #1
newbielinux
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
read filename from directory


Hi All

Can I read filename from directory and store it in variable (maybe "var")...
and can use it later in some command like

rpmbuild -ba var

where "var" is variable having name of spec file...

Any ideas
Thanks
 
Old 03-02-2004, 04:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Can I read filename from directory and store it in variable (maybe "var")...
and can use it later in some command like
Yes you can.



Cheers,
Tink
 
Old 03-02-2004, 04:48 PM   #3
newbielinux
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Tinkster
Yes you can.



Cheers,
Tink
-Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php read directory? wh33t Programming 1 07-05-2005 01:44 AM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 05:33 AM
How do I stop the filename and directory from printing? BajaNick Linux - Hardware 1 08-31-2004 05:31 PM
read directory and subdirectories skora Programming 3 10-27-2003 11:22 PM
Changing to a directory with a space in the filename? guitargeek Linux - General 5 02-13-2003 06:38 PM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration