10 More Discussions You Might Find Interesting
1. Programming
I have a collection of format strings for sscanf, such as
"%02d%*1s%02d%*1s%02d"
to read in certain formatted strings, such as dates, times, etc.
I wonder if there is a way to use them in printf without some changes? The example above would not work - at least I can't think of any ways to... (4 Replies)
Discussion started by: migurus
4 Replies
2. UNIX and Linux Applications
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
Discussion started by: MOHA-1
1 Replies
3. Shell Programming and Scripting
Hi
I am trying to write a shell script and wanted to re-use the value which I have entered already.
Here is the sample code.
echo "Enter Value : \c" ; read val
echo "Enter number: $val\c" ; read num
Now I wanted to change the value as showing in 2nd Line or if I will use enter, it... (15 Replies)
Discussion started by: SushilAnand
15 Replies
4. Emergency UNIX and Linux Support
I have a LUN (From HP-Storage VA7110) that is claimed on 2 servers, but is in used in one of the VG on Server-1 .
Now I want to shut Server-1 and re-use that LUN on server-2 .
Server-1
Path-1 : /dev/rdsk/c4t0d1
Path-2: /dev/rdsk/c6t0d1
Server-2
Path-1: /dev/rdsk/c5t0d1
Path-2:... (8 Replies)
Discussion started by: Shirishlnx
8 Replies
5. Shell Programming and Scripting
Hello everyone.
I'm trying to create a conf file with variables that my other scripts will use.
I have several scripts that use the same variables, and since I don't know how to read them from an external file, i define them in each script (and then if i want to change one's value i need to... (4 Replies)
Discussion started by: moshe88
4 Replies
6. UNIX for Dummies Questions & Answers
I'm currently using zsh. Sometimes I find myself wishing to reuse an argument from earlier in the command.
I know that I can, of course, assign an argument to a variable ahead of time, and then easily use that variable more than once.
I know about the ability to reuse arguments from previous... (0 Replies)
Discussion started by: marshaul
0 Replies
7. Shell Programming and Scripting
Hi.
I have these two variables:
My objective here is to reuse that $file_name variable again and again by resetting the $cv value.
for example, if i reissue the cv="$(print 'CV01')" command, thus $file_name is now should be "CP99978_CV01.TXT", not "CP99978_CV01.TXT" anymore.
How I'm... (7 Replies)
Discussion started by: aimy
7 Replies
8. HP-UX
Hello, I have 2 hp-ux both running 11.23, I have move one of a harddisk from "UNIX A" to "UNIX B", so how can I read back the data in "UNIX B"?
Thanks (5 Replies)
Discussion started by: zetadhell
5 Replies
9. UNIX for Advanced & Expert Users
Does anyone know of a password reuse utility for Solaris 7 or 8? Security people are telling me that I need one.
Thanks (1 Reply)
Discussion started by: rtoba
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am working on device drivers.Once If register a device i'll get one major no. If i unregister and register again i'll get a different major no.What i have to do to get same major no. each time :( (0 Replies)
Discussion started by: Agnello
0 Replies
MENHIR(1) General Commands Manual MENHIR(1)
NAME
menhir - parser generator for OCaml
SYNOPSIS
menhir [options] files
DESCRIPTION
menhir is a LR(1) parser generator for the Objective Caml programming language. That is, Menhir compiles LR(1) grammar specifications down
to Objective Caml code. It is mostly compatible with ocamlyacc(1).
OPTIONS
-h, --help
Show summary of options.
-b, --base basename
Specifies a base name for the output file(s).
--comment
Include comments in the generated code.
--depend
Invoke ocamldep and display dependencies.
--dump Describe the automaton in basename.automaton.
--error-recovery
Attempt recovery by discarding tokens after errors.
--explain
Explain conflicts in basename.conflicts.
--external-tokens module
Import token type definition from module.
--graph
Write grammar's dependency graph to basename.dot.
--infer
Invoke ocamlc for ahead of time type inference.
--interpret
Interpret the sentences provided on stdin.
--interpret-show-cst
Show a concrete syntax tree upon acceptance.
-la, --log-automaton level
Log information about the automaton.
-lc, --log-code level
Log information about the generated code.
-lg, --log-grammar level
Log information about the grammar.
--no-inline
Ignore the %inline keyword.
--no-stdlib
Do not load the standard library.
--ocamlc command
Specifies how ocamlc should be invoked.
--ocamldep command
Specifies how ocamldep should be invoked.
--only-preprocess
Print a simplified grammar and exit.
--only-tokens
Generate token type definition only, no code.
--raw-depend
Invoke ocamldep and echo its raw output.
--stdlib directory
Specify where the standard library lies.
--suggest-comp-flags
Suggest compilation flags for ocaml{c,opt}.
--suggest-link-flags-byte
Suggest link flags for ocamlc.
--suggest-link-flags-opt
Suggest link flags for ocamlopt.
-t, --table
Use the table-based back-end.
--timings
Display internal timings.
--trace
Include tracing instructions in the generated code.
--version
Show version number and exit.
-v Synonymous with --dump --explain.
SEE ALSO
ocaml(1).
AUTHOR
menhir was written by Francois Pottier and Yann Regis-Gianas.
This manual page was written by Samuel Mimram <smimram@debian.org>, for the Debian project (but may be used by others).
April 19, 2006 MENHIR(1)