LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-30-2013, 01: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, 01:42 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 01: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



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

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

All times are GMT -5. The time now is 08:03 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