Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-29-2013, 06:18 PM   #1
LQ Newbie
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
Question Re: shell script line


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.


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,
Old 12-29-2013, 07:51 PM   #2
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,515
Blog Entries: 6

Rep: Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426
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 08:05 PM.
1 members found this post helpful.
Old 12-29-2013, 09:49 PM   #3
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.


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

All times are GMT -5. The time now is 02:27 PM.

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