The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
3answers
62 views

How to use wildcards to find the years between 1900 and now

I want to know the number of times that any year from 1900 through the current year is mentioned in a Word file. I know how to use a wildcard expression to do this in two steps as follows: ...
1
vote
1answer
22 views

The correct way to use find prune

Facing the same problem as Why doesn't 'find' prune the way I think it should?, but that accepted answer doesn't work for me: Here are my files: $ find . . ./resources ...
0
votes
0answers
5 views

How do I add custom SYNTAX to OpenLDAP?

When defining an attribute in OpenLDAP, you have to provide a SYNTAX OID so OpenLDAP knows what kind of string it can accept for that attribute. How can I create a new SYNTAX for OpenLDAP?
1
vote
0answers
23 views

Vim: is it possible to add a modeline for :syntax sync fromstart in a file?

I'm writing a really long page to document a compiler and I was thinking that it would be nice if the doxygen highlighting would stick around. Only if I do a search to further down the file, it loses ...
-2
votes
1answer
69 views

VBA Find and Replace Syntax Error

I have a find and replace for some html tags and also replacing pipes with break characters. I need to replace pipe with Chr13 and then replace Chr13 with Chr10 as a subsequent step - below is the VBA ...
1
vote
2answers
40 views

Concatenation in JS functions [closed]

First question here. I am doing Codecademy's JS basics course and have run into a question concerning concatenation in functions. I have: var greeting = function(name){ console.log("Hello, "+"" ...
0
votes
0answers
29 views

mysql Adding date/time stamp to file produced, or other method of automated file naming to keep resulting files unique

SELECT '"Part #"', '"Manu"', '"Qty"', '"partdesc"', '"Rohs status"' UNION all ( SELECT partno, manuf, qtyleft, partdesc, stfifo.ROHScompliance FROM stmaster, stfifo WHERE stmaster.internal ...
1
vote
0answers
64 views

Mysql- Changing file name to include date/time stamp when query is run

SELECT '"Part #"', '"Manu"', '"Qty"', '"partdesc"', '"Rohs status"' UNION all ( SELECT partno, manuf, qtyleft, partdesc, stfifo.ROHScompliance FROM stmaster, stfifo WHERE ...
0
votes
1answer
28 views

determine what changed the mapping of system command like dd - vim

This morning something, I suspect a function call, changed the mappings or actions for system commands like dd , e , j etc. dd moved horizontally, 'e' moved down a line and j and k moved horizontally ...
0
votes
0answers
109 views

Adding Markdown Sytnax recognition to NotePad++ via UserDefineLang.xml

I want to add MArkdown as a language to NotePad++. I've downloaded the UserDefineLang.xml file from this GitHub Project. As I understand it, I am supposed to simply copy the UserDefineLang.xml file ...
0
votes
2answers
26 views

When creating multiple new lines, Sublime only leaves indented the final the line I end up on, and not those above it

In Sublime, when you hit return, it auto-indents the new line, according to syntax. However, if I hit return more than once, going multiple lines down, the previous lines do not remain indented. They ...
1
vote
1answer
634 views

Autohotkey key sequence not detected (win-alt-enter) '#' and '!' getting ignored

I am trying to remap the MCE remote green button that sends win-alt-enter (confirmed same LWin, LAlt, and Enter being sent) to just the windows key (LWin is fine). I found #!Enter:: on several forums ...
0
votes
0answers
73 views

Aptana Studio Custom File Extension Coloring

If I have a custom file extension, say '.cia' or '.fbi', how then can I open it up in Aptana with a syntax coloring scheme that I create? I've looked all over Aptana and I can add the file extension ...
0
votes
1answer
108 views

SED: syntax error at script.pl line 19, near “;$'”

I am using this command to delete multiple occurrences of a line in my script and it just works fine when I run it on the command prompt. However when I use this line in my perl script it throws an ...
1
vote
1answer
418 views

Vim syntax highlighting lost on single file

I have a strange thing happening on a single file. When I open the file under it's original name, the highlighting is lost (":syntax on" does nothing). But if I cp that file with another name and open ...
0
votes
1answer
2k views

Syntax highlighting for sql files on sublime text

I want to install syntax highlighting in my sublime text program for those extensions : .plpgsql .sql .plsql Somebody know how to do it ? I have installed some packages but there was no results. ...
3
votes
1answer
1k views

HTML - Historical or technical reason for target=“_blank” with underscore?

Until today I am wondering why target="_blank" has not become target="blank". I am sure the browsers could understand this as well. Are there any historcal or technical reasons for this decision / ...
2
votes
2answers
2k views

cat “input file is output file” while trying to combine multiple files into one

The plan was to collect all source lines of Java into one file, recursively: $ find . -name '*.java' | xargs cat >> all.java But there was an error: cat: ./all.java: input file is output ...
0
votes
1answer
115 views

How to run this command in CMD Windows

I' am not an expert in CMD. I want to reset my MySQL Database password. I saw articles online which only says to run the following command C:\\Program Files\MySQL\MySQL Server 5.6\bin\mysqld-nt ...
0
votes
1answer
29 views

VIM - in colorscheme file, how to have different colours depending on what the syntax is?

I use VIM and I want I use my own customized slate colorscheme (slate-mine.vim). In slate-mine.vim, is there a way for me to do something like if syntax == django html then apply the following ...
1
vote
1answer
195 views

Vim region with keywords in syntax patterns

I need to create a custom vim region with determines classes and structs. The code, for example, syn region myCxxClass start="\(class\|struct\)\_[ \t]\+" end="}[^;]*;" transparent The patterns for ...
1
vote
2answers
2k views

What about this Forfiles command syntax is wrong?

I was attempting to issue the following FORFILES command, and I recieved an error that distressed me (listed after the command). C:\Windows\system32>FORFILES /P %WINDIR%\servicing\Packages ...
-1
votes
1answer
229 views

ksh double quotes and variables

It's a KSH problems. I have encounter some problems with variables and quotation marks today. Order doesn't matter, although i cannot read the scripts but only execute it. SomeScripts.sh ...
1
vote
1answer
354 views

wget ftp with credentials for a list of files

This SuperUser question isn't quite what I need. Is there a way to do something like this wget ftp://myname:longpassword@someipddress/images/ -i file_list.txt I want to use the same credentials and ...
-1
votes
1answer
278 views

What are the specific names for the various username formats in Windows?

When windows users are prompted to enter their username, they can usually specify it in a variety of formats: username username@activedirectorydomain.example addomain\username What are the ...
0
votes
1answer
235 views

Syntax to create a file list

When I try to create a list of the files on a CD and to save it as a text file, something must be wrong with my syntax. Entering the command: gz@gcomputer:/media$ ls -aRl1 >> ...
-2
votes
1answer
340 views

How do I make a batch file that looks exactly like a command prompt?

I want to make a batch file that, when run, looks and works exactly the same as a command prompt, except that I can do something with everything the user enters (e.g. logging it). How can I do this?
2
votes
1answer
289 views

emacs auto-complete behavior with underscores in python mode

In my .emacs I have the following line of code: (modify-syntax-entry ?_ "." python-mode-syntax-table) This is so that commands like forward-word and backward-kill-word stop at any underscores that ...
5
votes
2answers
4k views

How can I see the available Windows Search Filters?

I've often wondered how to use Windows Search Filters. The available documentation is extremely limited, but its potential uses are quite large. When I type something, the only search filters I see ...
4
votes
5answers
319 views

How do I pipe a list of numbers straight from the shell into a command?

How do I pipe a list of numbers straight from the shell into a command? For exampe something like this [1,2,3,4] | sort would give 1 2 3 4 EDIT: In response to the answers kindly posted so ...
1
vote
1answer
1k views

Commenting Highlighted code in Netbeans

Using the latest version of Netbeans and trying to use the toggle comment button to comment out only the highlighted text, but netbeans ends up commenting out the entire line of CSS code. Is there ...
6
votes
2answers
3k views

Vim: What do these short names / verbs like <leader>, <C-r> mean?

I'm using Vim for a while now, starting to like it more and more. But when searching for some new features that Vim has in it's goodie bag, I'm often slapped in the face with things like ...
3
votes
1answer
72 views

What does this crontab line do?

What does this crontab entry do? I'm thinking it means run the jobs.sh script every Monday at 11AM. Is this correct? 0 11 * * MON /home/username/jobs.sh
0
votes
1answer
125 views

Bash delete file when variable = x

I'm creating a bash script which reboots the system at each reboot it adds a new line to a text file, I then read the text file before each reboot. Once the variable holding the number of lines ...
0
votes
1answer
43 views

What causes a link to not go through after a user clicks on it?

I'm using Firefox in OS X on a MacBook. Lately, I've tried clicking some links on the Yahoo main page only to be redirected to a blank white page that says "Bad Syntax". Is this the link or the ...
33
votes
4answers
3k views

In a URL, what is // for? [closed]

Typically, when I see //, it's usualy following some protocol prefix like http: or ftp:. I have never seen it placed anywhere else. For example, http://www.google.com/ is a typical URL. However, ...
3
votes
1answer
5k views

Matching a number sequence in grep

So I'm trying to match a year number sequence with grep and this should be easy. I'm just a bit stumped that my simplistic regex isn't working. What I'm doing is running a tool which archives some ...
0
votes
2answers
326 views

Microsoft Word font changing based on Java syntax?

So I'm making my own study guide for the SCJA (Sun Certified Java Associate) exam. Basically what I am doing is Reviewing the stuff on the McGraw Hill study guide, and then Typing up notes about the ...
6
votes
2answers
1k views

What bash < < syntax mean?

Ruby Version Manager (RVM) installed like so: bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) I understand what first < mean (feeds bash ...
1
vote
2answers
1k views

eclipse non-extension file syntax highlight

Computer software question: I have bash files that have no extension. How can I have its syntax highlighted in Eclipse. I already have ShellEd installed. Thanks.
5
votes
1answer
3k views

Program for creating language syntax/grammar “railroad” diagrams?

I'm looking for the program that JSON, SQLite and other projects are using to create the diagrams used for their language syntax, if there is a particular program. All of the diagrams have a similar ...
10
votes
1answer
6k views

Custom gedit Syntax Highlighting for Dummies?

I want to make (have, actually) a custom syntax highlighting for gedit. There would be just a few different items: A line that begins with 2 tabs. ----- One color. A line that begins with 3 tabs. ...
2
votes
2answers
335 views

What is the difference between echo $BASH_VERSION and echo ${BASH_VERSION}?

I see a lot of ${VARIABLE} type syntax in scripts. What is the point of the braces?
4
votes
1answer
4k views

crontab day of week vs. day of month?

I added this to /etc/crontab on a few different linux & freebsd systems: # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * 2 root /sbin/shutdown -r now I want a reboot on the 3rd ...
2
votes
2answers
162 views

How does calling a program in Windows XP from “Run…” with a colon argument work?

I noticed that a certain program works in a special way when sending an argument. The only way to send an argument is by clicking "Start -> Run..." and typing: [programname]:[argument] for e.g ...
0
votes
1answer
716 views

How can I tell what syntax and indentation rules Vim is using on a particular line?

For better or worse, PHP code often includes both HTML and Javascript. Getting Vim to indent it all correctly can be tricky. My .vimrc specifies that a tab should always be two spaces: set ...
0
votes
1answer
4k views

Only output header and summary with robocopy.exe

I'm using Robocopy and just want it to output the header and summary, hiding everything else. I've looked at the Robocopy syntax and have tried: /NC /NFL /NS /NDL /NP However I'm still getting this: ...
1
vote
2answers
166 views

Change only the user of a file

I have a textfile with name negin.txt in /home and did the following: Right click → Properties → Permissions → Advanced Permissions → Add Entry → Named User user:wwwrun Is ...
3
votes
1answer
847 views

How to set the default language in Notepad++ for Rails View files

Similar question to this but my question goes a step further. I'm developing in rails and would like Notepad++ to automatically use html formatting on files with the extension html.erb. For example ...
0
votes
0answers
114 views

What is the syntax of Apache's configuration files?

I'd like to know what the syntax of Apache's configuration files is. Particularly, quoting. Ive read this section: http://httpd.apache.org/docs/2.2/configuring.html#syntax And thought it left out a ...