10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a verilog file as following (part of it):
old.v:
bw_r_rf16x32 AUTO_TEMPLATE (
1957 // .rst_tri_en (mem_write_disable),
1958 .rclk (clk),
1959 .bit_wen (dva_bit_wr_en_e),
1960 .din ... (5 Replies)
Discussion started by: Zam_1234
5 Replies
2. Shell Programming and Scripting
I have file .
cat hello.txt
Hello World
I would like to append a string "Today " so the output is
cat hello.txt
Hello World Today
I dont know which line number does the "Hello World" appears otherwise I could have used the Line number to search and append . (3 Replies)
Discussion started by: gubbu
3 Replies
3. Shell Programming and Scripting
Hi,
I am new to Unix. Please help me in finding solution for the below scenario.
I have a flat file that contains data like
378633410|3013505414|new_378633410|ALBERT|WALLS|378633410|Rew|||||||
351049045|239|new_351049045|JIM|COOK|351049045|Rew|||||||... (6 Replies)
Discussion started by: anandek
6 Replies
4. Shell Programming and Scripting
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958(which is hostname) only,... (5 Replies)
Discussion started by: gsreeni
5 Replies
5. Shell Programming and Scripting
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958 only in... (2 Replies)
Discussion started by: gsreeni
2 Replies
6. Shell Programming and Scripting
Hi
I am trying to search for a particular occurrence of a string in a file, and if found, append another string to the end of that line.
Here is my file contents:
column1 userlist default nowrite=3 output=4
column2 access default nowrite=3
Here is the code:
A="user=1... (1 Reply)
Discussion started by: bludhemn
1 Replies
7. UNIX for Dummies Questions & Answers
I'm sure glad I found this forum... This is my first post, so please be gentle... ;)
I tried searching everywhere, but the terminology is so common that I cannot find a solution to my problem.
I'm looking for a GREP statement to do the following...
I need a search and append function... (5 Replies)
Discussion started by: rmanke
5 Replies
8. Shell Programming and Scripting
Dear All,
I want search two lines and append some string in between these lines.
Input file
tmp,123
,10:123
tmp,666
,50:999
tmp,2:19800
5,3:21.
tmp,2:19800
55555555
tmp,2:19800
5,3:21.Output should be
tmp,123
,10:123
tmp,666
,50:999
tmp,2:19800 (4 Replies)
Discussion started by: arvindng
4 Replies
9. Shell Programming and Scripting
All,
I stuck up for the logic, how to implement the below thing in script.
-Search for <a class="string-array"> line and in next line of search string append with <string>java</string> in a xml file
The problem here is, <a class="string-array"> occurs multiple places in the xml. I just... (13 Replies)
Discussion started by: vino_hymi
13 Replies
10. Shell Programming and Scripting
Hi all,
I have output files that are all text files with various different extensions.
So, if I submit the input file "job_name.inp", when it finishes I get an output file "job_name.dat". A typical input file looks something like this:
$CONTRL SCFTYP=RHF RUNTYP=ENERGY MAXIT=199 MULT=1... (4 Replies)
Discussion started by: marcozd
4 Replies
SYNCTEX(5) BSD File Formats Manual SYNCTEX(5)
NAME
synctex -- Synchronize TeXnology help file
DESCRIPTION
Synchronize TeXnology help file (synctexs) are text files that help input/output synchronization during document preparation with the TeX
typesetting system.
BASICS
The structure of this file should not be considered public, in the sense that no one should need to parse its contents, except the synctex
command line utility, and the synctex_parser library. Unless it is absolutely not avoidable, access to the contents of the synctex file
should only be made through requests made to the synctex command line utility.
STRUCTURE
The element structure of a synctex file is a list of text line records as follows. '*', '+', and '?' have their usual EBNF meanings: '*'
means zero or more, '+' means one or more, and '?' means zero or one (i.e., optional).
<SyncTeX> ::= (The whole contents in 4 sections)
<Preamble>
<Content>
<Postamble>
<Post Scriptum>
Each section starts with the first occurrence of a sectioning line, and ends with the next section, if any. In the following definitions, we
do not mention the section ending condition.
The preamble
<Preamble> ::=
"SyncTeX Version:" <Version Number> <EOL>
<Input Line>*
"Magnification:" <TeX magnification> <EOL>
"Unit:" <unit in scaled point> <EOL>
"X Offset:" <horizontal offset in scaled point> <EOL>
"Y Offset:" <vertical offset in scaled point> <EOL>
<Input Line> ::= "Input:" <tag> ":" <File Name> <EOL>
The content
<Content> ::=
<byte offset record>
"Content:" <EOL>
<sheet(1)>
<Input Line>*
<sheet(2)>
<Input Line>*
...
<sheet(N)>
<Input Line>*
<byte offset record> ::= "!" <byte offset> <end of record>
<sheet(n)> ::=
<byte offset record>
"{" <the integer n> <end of record>/
<box content>*
<byte offset record>
"}" <the integer n> <end of record>
The <box content> describes what is inside a box. It is either a vertical or horizontal box, with some records related to glue, kern or math
nodes.
<box content> ::=
<vbox section>|<hbox section>
|<void vbox record>|<void hbox record>
|<current record>|<glue record>|<kern record>|<math record>
<vbox section> ::=
"[" <link> ":" <point> ":" <size> <end of record>
<box content>*
"]" <end of record>
<hbox section> ::=
( <link> ":" <point> ":" <size> <end of record>
<box content>*
")" <end of record>
Void boxes:
<void vbox record> ::= "v" <link> ":" <point> ":" <size> <end of record>
<void hbox record> ::= "h" <link> ":" <point> ":" <size> <end of record>
<size> ::= <Width> "," <Height> "," <Depth>
<Width> ::= <integer>
<Height> ::= <integer>
<Depth> ::= <integer>
<link> ::= <tag> "," <line>( "," <column>)?
<line> ::= <integer>
<column> ::= <integer>
The forthcoming records are basic one liners.
<current record> ::= "x" <link> ":" <point> <end of record>
<kern record> ::= "k" <link> ":" <point> ":" <Width> <end of record>
<glue record> ::= "g" <link> ":" <point> <end of record>
<math record> ::= "$" <link> ":" <point> <end of record>
The postamble
The postamble closes the file If there is no postamble, it means that the typesetting process did not end correctly.
<Postamble>::=
<byte offset record>
"Count:" <Number of records> <EOL>
The post scriptum
The post scriptum contains material possibly added by 3rd parties. It allows to append some transformation (shift and magnify). Typically,
one applies a dvi to pdf filter with offset options and magnification, then he appends the same options to the synctex file, for example
synctex update -o foo.pdf -m 0.486 -x 9472573sp -y 13.3dd source.dvi
<Post Scriptum>::=
<byte offset record>
"Post Scriptum:" <EOL>
"Magnification:" <number> <EOL> (Set additional magnification)
"X Offset:" <dimension> <EOL> (Set horizontal offset)
"Y Offset:" <dimension> <EOL> (Set vertical offset)
This second information will override the offset and magnification previously available in the preamble section. All the numbers are encoded
using the decimal representation with "C" locale.
USAGE
The <current record> is used to compute the visible size of hbox's. The byte offset is an implicit anchor to navigate the synctex file from
sheet to sheet.
Independant Mar 13, 2012 Independant