The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
10answers
405 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
1answer
49 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
88 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
2answers
924 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 ;; ...
0
votes
1answer
363 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
3k 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 ...
0
votes
2answers
587 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.
0
votes
1answer
24 views

How to refer to a 'related' table in another excel table?

I have created two related tables (tableA and tableB) in excel and linked them using 'Relationships' in Excel 2013. I'm trying to create a new formula field in tableB that refers to two cells from a ...
1
vote
2answers
774 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
vote
1answer
240 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
191 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
57 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
19 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
67 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 ...
0
votes
1answer
86 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
49 views

how to use intel syntax ijn objdump?

i can't use intel syntax .. when i type the command to use it it says "Can't use supplied machine intel" ubuntu@ubuntu:~$ objdump -m intel -D a.out | grep -A20 main.: objdump: Can't use ...
5
votes
4answers
4k 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 ...
2
votes
2answers
2k 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
144 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
124 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
138 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
226 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
0answers
47 views

Extractor Information program by detecting syntactic patterns

I wonder if there is a program that helps you automatically extract information by setting syntactic patterns and save it in a base data.
2
votes
1answer
170 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
496 views

What's the syntax to add a calendar reminder from Google Command Line?

I've been using googlecl successfully to add events to my calendar. Things like: google calendar add "call Paul tomorrow at 8:30am" work great, and add the appropriate event t the right time. ...
4
votes
5answers
294 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 ...
4
votes
3answers
2k views

how do I use tar -C on Snow Leopard when creating an archive?

The man page states -C directory In c and r mode, this changes the directory before adding the following files. However, tar does not change to the directory I specify, but instead reports ...
5
votes
2answers
4k 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 ...
1
vote
1answer
383 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 ...
3
votes
2answers
1k 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
70 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
137 views

Match (highlight) invalid Hungarian notation variables syntax

We follow our own defined coding standard (Hungarian notation) as per our checklist, using Notepad++: Check that all variables are valid according to Hungarian notation identifier naming convention, ...
0
votes
1answer
107 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
42 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 ...
32
votes
4answers
2k 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, ...
0
votes
1answer
585 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 ...
3
votes
1answer
2k 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
224 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 ...
8
votes
5answers
3k views

How is \$ being interpreted by grep?

When I write $ grep \$ then whatever I type on terminal, is matched and printed on terminal. How is \$ being interpreted?
3
votes
1answer
844 views

Fix YAML syntax highlighting in VIM

The YAML syntax highlighting in Vim 7.3 isn't great. Putting an apostrophe in a line of text triggers quote highlighting even when there's no quote. The same thing happens in other files sometimes ...
57
votes
5answers
21k 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 ...
2
votes
2answers
11k views

copy file to multiple folders via batch script

I want to copy a file (file.txt) inside all folders of a given destination. I want to create a batch file that does the job, but I'm not so skilled in Windows batch syntax.
0
votes
1answer
3k 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: ...
3
votes
1answer
689 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 ...
3
votes
2answers
7k views

How can I sort ls by owner and group?

How can I list directories with ls and sort them by their owner and group?
1
vote
2answers
605 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 ...
2
votes
4answers
550 views

Can't run any .exe files

I had Windows Vista and it got a virus. I reinstalled the operating system but with XP. Now it works absolutely fine, but every time I try to open a .exe file, i'm told 'the filename directory name ...
4
votes
1answer
2k 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 ...