Dear Friends,
I need a shell script.
I am facing a problem while selecting the text that is between start and end tags. and insert the paragraph into a file1, next paragraph in file2......
experts please help.
i have a file which contains,
--------------
<abc> 111some text some text
some... (2 Replies)
Hi all,
For a intro UNIX course I'm taking, I need to use the command "tr" to display a file on standard output without any newlines (all on one line).
I assume I would start with "cat filename | tr" but don't know what to put after tr.
Any ideas would be lovely!
Thanks. (3 Replies)
I have a file that contains the following lines
the brown quick fox
jumped over
the white laze dog
0123456789
I wanted to put the contents of this file into a variable so I used this code:
VAR_LIST=`cat $2`
where $2 is the file name passed as an argument to the script
If I... (3 Replies)
Hi,
I have to search those statements from the file which starts from "shanky"(only shanky, shanky09 or 09shanky is not allowed) and ends with ");". These two string can be in a same line or different line. And also i have to negate those lines which starts with #.
Can any one please give me... (2 Replies)
Hi,
I have a requirement to search for a string in a large log file along with few lines before and after the the string. The following script was sufficient to search such an entry.
STRING_TO_GREP="$1"
FILE_TO_GREP="$2"
NUMBER_OF_LINES_BEFORE=$3
NUMBER_OF_LINES_AFTER=$4
for i in `grep... (3 Replies)
Hi all,
i'm new to this community. I am trying to write a script which will fetch ftp completion time of a file from a paragraph of a big text file ( which contains multiple paragraphs) . Each paragraph will have ftp details..
Now I dont know how to fetch process time within a paragraph of... (3 Replies)
hey guys,
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
TESTING
AAA
BBB
CCC
DDD
EEE
FFF
GGG
HHH
ENDTESTING
This is the input file: (3 Replies)
This is for AIX 6.1, I've a flat file and the format is like this
DECLARE
some statements;
BEGIN
some statements;
END;
I've to search BEGIN and replace it with the following 4 lines
BEGIN
For x in 1..1
LOOP
BEGIN
Similarly I've to search END and replace it with the... (7 Replies)
how to find multiple lines in to multiple files if matched lines then do
f1 f2 f3 are files ,lines contain matched lines
f1
asdasdasdasd
asdasdasdasd
abc
def
Business date cannot be as of date
ghi
sdasdasdasda
asdasdasdada
f2 (1 Reply)
Discussion started by: Kalia
1 Replies
LEARN ABOUT DEBIAN
menhir
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)