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 12-29-2013, 05:18 PM   #1
Gregg.JS
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
Question Re: shell script line


Hello,

I am reviewing a /bin/sh script that has a line that i do not understand. I'll include the line below and if more information is necessary then please let me know and I will be glad to offer as much as you need.

LOCKPROP=something.lockfile=\"$LOCKFILE\"

It appears that it is setting LOCKPROP to something. But something.lockfile is not defined anywhere and I do not know what it represents.

LOCKFILE is defined but I don't know what the \" \" do.

Can someone help me understand this line. Furthermore, it would be fantastic if someone could also help me understand where I could have looked to find the answer myself. I'm not sure what man i should have used or keywords to use.

Best regards,
Gregg.JS
 
Old 12-29-2013, 06:51 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,270
Blog Entries: 1

Rep: Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304Reputation: 2304
It is setting the value of LOCKPROP to the value something.lockfile="VALUE_OF_$LOCKFILE".

No clue why it would be doing that, but maybe to write it to another script, or to set it for later evaluation, who knows.

A good place to start would be here, and here.

Last edited by astrogeek; 12-29-2013 at 07:05 PM.
 
1 members found this post helpful.
Old 12-29-2013, 08:49 PM   #3
Gregg.JS
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you Title

Thank you astrogeek. I've bookmarked those URLs too. Much appreciated. I suppose I could have tested it. Shame on me.
 
  


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
How to pass command line arguments from one shell script to another shell script VijayaRaghavanLakshman Linux - Newbie 5 01-20-2012 09:12 PM
how to replace line of file with another line using awk in shell script amit_pansuria Programming 3 03-29-2009 09:43 AM
How to identify a line and replace another string on that line using Shell script? Sid2007 Programming 10 10-01-2007 08:49 PM
shell script question: removing a line according to a duplicate "field" mattie_linux Linux - Newbie 1 01-12-2006 03:57 PM


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