The syntax tag has no wiki summary.
0
votes
1answer
15 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
1answer
57 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 ...
3
votes
1answer
259 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
87 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?
1
vote
1answer
62 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
70 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
0answers
66 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
0answers
119 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
77 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
0answers
182 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
44 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
0answers
35 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.
3
votes
4answers
221 views
Launch VIM and show, or hide, row numbers
Background
Control whether row numbers are displayed after vim starts (in a non-interactive mode).
Problem
A shell script contains the following code:
echo Converting $1 to $1.html...
NUMBERS="-c ...
0
votes
2answers
305 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 ;;
...
2
votes
1answer
211 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 ...
0
votes
1answer
123 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. ...
1
vote
2answers
286 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
351 views
Repeat DOS command for each of three variables?
I need to write a batch file that repeats the same command (that takes a parameter) for each of three variable values already defined in the batch file. I want to loop over the variable values.
I'm ...
2
votes
2answers
77 views
Make emacs show comments after } else {
This is best described on an example. Let's say you have the following C source file:
if (something is true)
{
meh();
} else if (something else is true) {
foo();
} else { // something even ...
1
vote
4answers
353 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 ...
2
votes
2answers
502 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 ...
2
votes
4answers
1k 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 ...
3
votes
2answers
535 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
...
0
votes
1answer
743 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?
3
votes
2answers
269 views
How to grep a line start with “*” using grep
How can I use 'grep' to get lines start with '* ' in my file?
I tried grep "*" myfile and grep "* " myfile but returns all the lines of my file.
2
votes
2answers
4k 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.
5
votes
3answers
370 views
How to read Unix usage
I did some searching, but I cannot find documentation on how Unix usage works. I know something (mostly through trial and error) but, for example, how do I know that
/usr/bin/ls ...
16
votes
5answers
2k 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
2answers
149 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: ...
0
votes
0answers
132 views
strange behaviour of grep in UNIX [closed]
Possible Duplicate:
strange behaviour of grep in UNIX
This is a follow on to this earlier question.
When I type a command
$ grep \\\\h junk
then the shell should interpret \\\\h as ...
2
votes
1answer
376 views
Automating Disk Cleanup on Windows using commandline
I am trying to run Disk Cleanup in the Command Prompt (and through a C# program) and so I went through all the available options from this link:
http://support.microsoft.com/kb/315246
Whilst I ...
6
votes
5answers
248 views
grep doubt in UNIX
When I write
$ grep \$
then whatever I type on terminal, is matched and printed on terminal.
How is \$ being interpreted?
1
vote
3answers
357 views
Ubuntu Crontab error
I want to list files at 12h01. How can I set my crontab to do this?
pedro@Pedro-PC:~/PL/trab4$ crontab -l
# 01 12 * * * ls -l
0
votes
1answer
1k views
Rotate screen using xrandr on Solaris 10
How do I call the xrandr command? I want to rotate my screen 90 deg. clockwise. Here is the usage:
% xrandr -help
usage: xrandr [options]
where options are:
-display <display> or -d ...
2
votes
2answers
658 views
Syntax for find on Mac OS X
I have a project directory that contains source code and subdirectories of source code. I want to use the Unix program find to search recursively for the names of files of certain extensions. The ...
3
votes
7answers
252 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 ...
1
vote
3answers
543 views
What is the meaning of pri=42
When mounting a swap partition on Linux, what does the mount option pri=42 mean?
fstab:
/dev/hda1 swap swap pri=42 0 0