Sponsored Content
Top Forums UNIX for Advanced & Expert Users Linux dollar sign in front of directory Post 303018732 by jim mcnamara on Wednesday 13th of June 2018 07:59:12 PM
Old 06-13-2018
Config files can be read and used by different kinds programs, not just bash. That config file would fail miserably as a bash script based just on the use of spaces.

It seems to me it means translate (or substitute) the string that is stored in the dir variable - kind of like dereferencing if you will. The author probably figured that $ prepend would improve reading clarity for us UNIX types. Maybe not.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Are their any Front Page 2000 *linux* programs?

I am looking for an alternative. I am not wanting to try and run it using one of those fancy programs that can run windows programs. I am trying to cut the chord from MS so I am looking for good similar programs. Any thoughts? If there are none, then I guess I try to run it under Linux. ... (6 Replies)
Discussion started by: wizkid
6 Replies

2. Shell Programming and Scripting

Sign on/Sign off logging script

I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem. I need... (1 Reply)
Discussion started by: Glider
1 Replies

3. UNIX for Advanced & Expert Users

Problem: Single Sign On for linux

Hi gurus, I'd like to know your opions about Single Sign On (SSO) for linux (Debian). In my company, clients want to access to different services (FTP, HTTP, Mail, Web Applications ). I think about OpenLDAP and Proxy (Squid, Vulture) to resolve this problem but i'm not sure if they can. Are there... (0 Replies)
Discussion started by: thanhdat
0 Replies

4. UNIX for Dummies Questions & Answers

Sign up address for linux forum eNews

Does anyone have this handy Thanks (0 Replies)
Discussion started by: 77yrold
0 Replies

5. UNIX for Dummies Questions & Answers

Communicate to the OS(linux) using front end.

Hi guys , I want to develop a web page which is capable of executing the command on os and show the output on the browser.(Which involves reading and writing too.) I m using jsp language to develop the web page. How would i use it to communicate with my linux server? Any... (3 Replies)
Discussion started by: pinga123
3 Replies

6. Shell Programming and Scripting

substitute the starting dollar sign in command with blank

Hi,, Let example cmd: $$config/all Here I want to replace or subsitute blank space and also with any other character in place of "$" sign...and also want to replace backslash (/) with forward (\)......in expect script please could any one help on this.....thank you (2 Replies)
Discussion started by: swethakast
2 Replies

7. Linux

Linux command to find and replace occurance of more than two equal sign with "==" from XML file.

Please help me, wasted hrs:wall:, to find this soulution:- I need a command that will work on file (xml) and replace multiple occurrence (more than 2 times) Examples 1. '===' 2. '====' 3. '=======' should be replaced by just '==' Note :- single character should be replaced. (=... (13 Replies)
Discussion started by: RedRocks!!
13 Replies

8. UNIX for Advanced & Expert Users

Linux expand dollar sign in single quotes

I am trying to get a dollar sign variable to be expanded in single quotes. Not sure what I am doing wrong. I have tried every way I can think of. for i in `cat file1` do for j in `cat file2` do ssh $i 'systemctl is-enabled "${j}" '; done done... (4 Replies)
Discussion started by: cokedude
4 Replies
CFINGERD.TEXT(5)					    Configurable Finger Daemon						  CFINGERD.TEXT(5)

NAME
cfingerd.text - cfingerd text rules EXPLANATION
cfingerd offers different commands that can be placed in text files to display corresponding information. Each command used with cfingerd in text files begins with a dollar-sign (or a "$"). This usually indicates to cfingerd that when it's displaying a file, it issues the command given directly after that character and inserts its output. If you want to display a raw "$" sign, simply put two "$" signs together, or "$$". Text commands are only parsed if ALLOW_LINE_PARSING is enabled in /etc/cfingerd/cfingerd.conf(5). If it is disabled the text files will be sent as is, complete with any single or double dollar signs they may contain. TEXT COMMANDS
The following is a list of text commands and what they do. They are checked case insensitively. $CENTER will display the entire contents of the line. This command must start at the beginning of the line. This is a very common com- mand. $DATE displays the current system date in the format of MM/DD/YY. $TIME displays the current system time in the format HH:MM A/PM (timezone). $IDENT displays the identity of the current person fingering your system. $COMPILE_DATETIME displays the date and time of which the current issue of cfingerd was compiled on your system. $VERSION displays the current version of cfingerd. $EXEC executes the rest of the line as a system command and send the output to the fingering user. Pipes, parameters etc. are available. The $EXEC command must be on a line by itself in order to function properly. The command is executed as nobody.nogroup if used in a system file. If used in a user file (e.g. .plan) the command is executed as that particular user. cfingerd will fork() before executing the new command and will drop all priviledges so this is safe. This feature is only available if ALLOW_EXECUTION is enabled in cfingerd.conf. The program may prodeuce a maximum of 10MB of output. CONTACTING
If you like the software, and you want to learn more about the software, or want to see a feature added to it that isn't already here, then please write to cfingerd@infodrom.north.de. The project's webpage is at http://www.infodrom.north.de/cfingerd/ . SEE ALSO
cfingerd(8), cfingerd.conf(5), finger(1), userlist(1), any of the included docs with the standard cfingerd distribution. 1.4.2 7 Aug 1999 CFINGERD.TEXT(5)
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy