LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 03:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 03: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



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 12:44 AM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM
How do I stop the filename and directory from printing? BajaNick Linux - Hardware 1 08-31-2004 04:31 PM
read directory and subdirectories skora Programming 3 10-27-2003 10:22 PM
Changing to a directory with a space in the filename? guitargeek Linux - General 5 02-13-2003 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration