Questions tagged [dollar-sign]

Anything related to the dollar symbol `$` and its special meanings in programming. The dollar symbol is often used in various programming languages as a special symbol for various purposes.

Anything related to the dollar symbol $ and its special meanings in programming. The dollar symbol is often used in various programming languages as a special symbol for various purposes.

For example, the dollar symbol has special meaning in:

  • most flavors of regular expressions
  • PHP language
  • R language
  • some Basic dialects
  • BASH shell language
  • assembly language
  • makefiles language
  • TCL language
  • etc.
199 questions
0
votes
1 answer

Latex Dollar Sign \\ How do I signify Linux Environment Variables in latex?

I am aware to output dollar signs you escape it with \ such that: \$ % prints '$' However, I can't print something like \$ JAVA_HOME % prints '$ JAVA_HOME' The space in between the $ and JAVA_HOME is what's annoying. How can I…
user402642
0
votes
2 answers

Variables in mootools dollar sign element calls

So I have an element I want to modify (with Fx.Tween, but I suppose it doesn't really matter). However, the element id is dynamically generated, meaning I have to piece it together from some variables. So let's say... (in js) name = 'foo'; id =…
Julian H. Lam
  • 25,501
  • 13
  • 46
  • 73
0
votes
1 answer

Ksh dollar and carriage return in a string

I have a ksh script, which I have problem in insert few lines with carriage into a file. #!/bin/ksh FILE_NAME="/tmp/t.xml" LINE="ManagedElement=1,Equipment=1,Subrack=MAIN,Slot=3,PlugInUnit=1" COUNTER_VALUE=`grep -A4 $LINE $FILE_NAME |…
user3893836
  • 85
  • 10
0
votes
1 answer

Access a file with a $variable-unix

I am trying to access a file that has a variable in its name (i.e. file_n: file_1, file_2, etc). I am trying to access it with cat $file_$n But this doesn't work. Any ideas?
0
votes
1 answer

How to Browse files from folder without open it

I work with this code to open folder and browse files from it, but i need to get this files without open folder,when I run my program automatically load this files, I try to use GetFiles() but didn't work with me when apply the filter for files i…
mbugr
  • 322
  • 1
  • 4
  • 23
0
votes
1 answer

what does the dollar sign mean in the substitution line of bash command "rename"

I was reading about rename and came across this example to change the file extension from htm to html: rename -v 's/\.htm$/\.html/' *.htm and it said: The $ means the end of the string. \.htm$ means that it will match .htm but not .html. I was a…
Geng
  • 11
  • 3
0
votes
1 answer

In Doctrine, what does dollar sign mean in dot syntax like, property.$.otherProperty?

In Doctrine, what does dollar sign mean in dot syntax like, property.$.otherProperty? I noticed in /Doctrine/ODM/MongoDB/Tests/Query there is an interesting queryBuilder argument, field('phonenumbers.$.phonenumber') where, in the User class,…
CommaToast
  • 11,370
  • 7
  • 54
  • 69
0
votes
1 answer

How do I get the right values out of this JSON?

I've got a really stupid question but I can't seem to find any answer whatsoever. I have this JSON from an online weather API, the JSON looks like…
E. V. d. B.
  • 815
  • 2
  • 13
  • 30
0
votes
2 answers

Unix `cp` command with $ sign

This question is regarding the Unix cp command. What is the $(...) operator doing below? cp $(bundle show bootstrap-sass)/vendor/assets/stylesheets/bootstrap.scss \ app/assets/stylesheets/bootstrap-custom.scss I came across this notation from the…
user3621156
  • 65
  • 1
  • 7
0
votes
4 answers

In jQuery what is the difference between using the dollar sign VS var?

I'm working with a developer that never uses var when declaring variables in jQuery. Something like: $x = "hello"; $y = "world"; $a = x + " " + y; jQuery doesn't have a problem with this and he's been doing this for awhile. I've always used…
dcp3450
  • 10,959
  • 23
  • 58
  • 110
0
votes
1 answer

print dollar sign in python

I am generating mysql table schemas using information from another mysql table. Below is the python code that prints for an 'enum' mysql data type. print '\t`%s` %s(\'%s\') COLLATE utf8_unicode_ci NOT NULL,' % (mysql_field_name, mysql_data_type,…
user1645914
  • 371
  • 6
  • 23
0
votes
1 answer

How can I put literal $ in sublime-completions file?

I want to put literal $ in sublime-completions file. I tried first { "trigger": "request", "contents": "\$$1 = request('$1');" } but this seems malformed. It corrupts the whole file. So I tried { "trigger": "request", "contents": "$$1 =…
kipenzam
  • 127
  • 1
  • 7
0
votes
2 answers

How to grep $ sign in script

I am trying to grep for a line present in file: devnode "^sda[1-9]?$" The command that I am using is : grep 'devnode \"\^sda\[1-9\]\?\$\"' $file But it doesn't seems to work. I have made sure to use $ like "grep '\$'" as reported in some solutions…
0
votes
6 answers

Strange jQuery formatting, can anyone explain?

I've come across a plugin to toggle checkboxes (https://github.com/designmodo/Flat-UI/blob/master/js/flatui-checkbox.js). However, it doesn't work properly with the latest version of jQuery so I'm having to debug it. Can anyone explain the…
Lars
  • 7,908
  • 11
  • 52
  • 70
0
votes
1 answer

jQuery equivalant of mootools $$

I am migrating my code to jQuery from mootools. There is a line of code that uses mootools '$$' to get an array of elements with the given selectors var myMenu = $$('#outerDiv .menu'); I have tried jQuery('#outerDiv .menu') but it doesn't return…
Riju Mahna
  • 6,718
  • 12
  • 52
  • 91