Questions about the particularities in the symbols that commands and programming languages require for a proper structure.

learn more… | top users | synonyms

1
vote
2answers
30 views

How to use OR in a COUNTIF function when dealing with dates and “>” characters

I want to write a function whereby I could count a cell if it is blank OR greater than a date. This is a piece in what will be a much larger formula so looking to avoid a solution of ...
0
votes
2answers
1k views

.bashrc reports unexpected EOF

I am trying to add some functions to my bashrc, namely: h () { history | fgrep $1 | sort -u | cut -b 8- } extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; ...
15
votes
4answers
1k views

Difference between '{}' and {} in find command?

In the documentation, I see usage both ways: find . -type f -exec file '{}' \; find repo/ -exec test -d {}/.svn -o -d {}/.git -o -d {}/CVS ; \
0
votes
0answers
34 views

Auto generated help vs installed help in PowerShell

I'm using PowerShell 4.0. Here is a snippet of the syntax of the Get-ChildItem command if the local help is not installed (PowerShell displays auto-generated help) : SYNTAX Get-ChildItem ...
1
vote
0answers
57 views

Can't start Apache 2 - Probably faulty SSL configuration

I followed this german tutorial to set up a Raspberry 2 Owncloud Server (connect.de/ratgeber/so-installieren-sie-owncloud-auf-einem-raspberry-pi-1540246.html) everything worked fine without any Errors ...
98
votes
5answers
40k views

In bash, how do I escape an exclamation mark?

I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I ...
0
votes
1answer
213 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 ...
6
votes
2answers
6k views

How to 'code collapse' wiki syntax on Notepad++ (or any other text editor)?

I'm familiar with Notepad++'s code collapse for certain programming languages but recently I've been working with a plain text file that uses with Wiki syntax. For example: ==Heading1== Content ...
0
votes
1answer
16 views

Why do I sometimes have to double escape spaces in rsync paths?

When referring to paths with spaces, e.g. Steve Jobs, I can either backslash escape, or surround with quotes, when the path is the local directory: rsync Steve\ Jobs user@remote:/ or rsync "Steve ...
0
votes
0answers
64 views

schtasks - Why doesn't this work?

I type this into cmd or in a batch script: schtasks /change /RP user_password /TN "existing_task" /ST H:M If /ST H:M has two digits in the hour it says ERROR: The parameter is incorrect. If /ST ...
6
votes
1answer
4k 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 ...
0
votes
1answer
318 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 ...
0
votes
0answers
56 views

How to run git pull command non-interactively?

I've the following find command which scans all previously cloned git repositories and pull them again: find $PWD -name .git -type d -print -execdir git pull -qv ';' The problem is that some of the ...
0
votes
0answers
17 views

Exclude a folder from search results in OneDrive web interface

Is it possible to exclude results from a single directory (branch) when searching for a filename in OneDrive web interface? If so what would the search query syntax be?
0
votes
1answer
15 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?
0
votes
0answers
16 views

How to use TextMate 2's Find “In” Regular Expressions?

Ok, here is a scenario, in pictures. OK, so searching all files looks in 333 files, and finds 614 matches. First result is alex/init.zsh. Fine. So I try to limit the scope a bit, with my logical ...
0
votes
1answer
30 views

Reference a cell with input from another cell

The final objective is to reference the last populated (higher row number) cell from a column (its value). I found a function that returns the row number of the last populated (higher row number) ...
2
votes
1answer
51 views

How to remove files using find's multiple -name parameter?

How to remove files, containing tilde in the filename or extension, recursively? For example, files of the vim, with the names like .my_file.c.un~? I'm using this find sequence for that: find . ...
0
votes
1answer
44 views

Having trouble passing double quotes to dialog

I'm working on a script for automating audio recording, using the 'dialog' command to create an interactive menu to appropriately name channels. I've got a list of the channel names in an array. I ...
0
votes
0answers
41 views

Sublime Text 3 Missing Extensions

I started using sublime text v3 and I'm having problems with some extensions. When I look for php/js/css/html extensions, they aren't listed in the extensions list. I reinstalled the program and ...
2
votes
3answers
102 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
41 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 ...
2
votes
0answers
58 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 ...
0
votes
2answers
27 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 ...
-2
votes
1answer
108 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
61 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
30 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
131 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
29 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 ...
5
votes
2answers
5k 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 ...
1
vote
1answer
714 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 ...
3
votes
9answers
484 views

“Syntax” Highlight a flatfile

I've googled and looked and explored, but it seems most editors configurable syntax highlighting definitions are based on keywords and such. I need one that is based on columns and lines, basically ...
0
votes
2answers
478 views

Print the file name with another extension (Batch-program)

Batch-program launchs with 1 parameter (full path to file) program.cmd "C:\Path\To\File\Filename.txt" Now, this program consists of 1 command: echo %1 And it just prints an argument: ...
2
votes
1answer
639 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
120 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 ...
0
votes
1answer
3k 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
3answers
5k views

Checkbox in Mediawiki syntax?

Is there a way to insert an HTML checkbox in Mediawiki syntax? <input> doesn't appear on their list of blessed tags, so I can't just insert it. (FWIW, this is for a private documentation page ...
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.
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 ...
5
votes
1answer
2k 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 / ...
3
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
161 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
33 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
263 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 ...
5
votes
4answers
5k views

Explanation of command to uppercase the first letter of a filename

I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want ...
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 ...
3
votes
2answers
3k views

How to set syntax specific settings in my VIMRC?

I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...
1
vote
1answer
434 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
372 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
286 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 >> ...