LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-30-2013, 02:34 PM   #1
elkadiri.wd
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
question code


hello
can you explain me this code i didn't understand it

rep1= /users/`basename $rep`

thanks
 
Old 05-30-2013, 02:42 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,328

Rep: Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471
Quote:
Originally Posted by elkadiri.wd View Post
hello
can you explain me this code i didn't understand it

rep1= /users/`basename $rep`
thanks
Assuming this is a bash script, you're setting the rep1 variable to be /users, and whatever the output of the basename command is, after providing it with the contents of the $rep variable.
 
Old 05-30-2013, 02:57 PM   #3
elkadiri.wd
LQ Newbie
 
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Assuming this is a bash script, you're setting the rep1 variable to be /users, and whatever the output of the basename command is, after providing it with the contents of the $rep variable.
thank you
 
  


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
kernel C code question h/w Programming 4 05-18-2004 09:30 AM
for statement c code question dragoon linux Programming 3 12-31-2003 12:17 PM
newb c++ code question dragoon linux Programming 9 12-29-2003 01:55 PM
Question on PSAD code? cxel91a Programming 0 09-05-2003 05:10 AM
Another source code question. JMC Linux - General 3 05-28-2002 02:58 AM

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

All times are GMT -5. The time now is 11:19 AM.

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