09-07-2018
Thank you so much for your examples.
Kind regards
Boris
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I'm trying to translate a fixed length (the first 6 positions) that begins with a 0 to overwrite the field with an *.
Any suggestion?
File 1
-------
013344 01:20
222343 19:30
233333 20:30
File 2 (result)
-----------------
****** 01:20
222343 19:30
233333 20:30 (5 Replies)
Discussion started by: peterk
5 Replies
2. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
3. Shell Programming and Scripting
Hi all,
I need your help.
For example I have string in file.txt:
-x -a /tmp/dbarchive_NSS_20081204 -f 900 -l 1 2008/12/04 2008/12/04
So, I need to replace symbols from (for e.g.) position 26 till 33 with symbols which I have in file replace.txt
And I have no idea how to do it.
If... (1 Reply)
Discussion started by: nypreH
1 Replies
4. Shell Programming and Scripting
I want to remove text from nth position to nth position couple of times in same line
my line is
"hello is there anyone can help me with this question"
I need like this
ello is there anyone can help me with question
'h' is removed and 'this' removed from the line. I want to do this... (5 Replies)
Discussion started by: elamurugu
5 Replies
5. Shell Programming and Scripting
I'm drawing a blank on how to use sed to replace selectively based on position in the string (vs nth occurence):
hello.|there.|how.|are.|you.|
I want the period removed in the 3rd item (as defined by the pipe delimiter) if a period is present. So the result in this case would be:
... (2 Replies)
Discussion started by: tiggyboo
2 Replies
6. Shell Programming and Scripting
I'm coding using BASH and have a requirement to replace apostrophes with backslash apostrophes. For example below:
I am here 'in my room' ok
Would be changed to:
I am here /'in my room/' ok
The original text is coming from a field in a MySql database and is being used by another process that... (5 Replies)
Discussion started by: dbjock
5 Replies
7. Programming
Hi,
I have a document with usual English text and some of the words have apostrophes (e.g. don't, can't, etc.)
I would like all these apostrophes to be doubled (e.g. don''t, can''t, etc.), but the problem is, that some of such words have double apostrophe and
by using sed -i "s/'/''/g"... (2 Replies)
Discussion started by: neptun79
2 Replies
8. Shell Programming and Scripting
Currently the table looks like this
student-id,last,first,hwk1,hwk2,hwk3,exam1,hwk4,hwk5,exam2
pts-avail,,,100,150,100,200,100,150,300
991-78-7872,Thompson,Ken,95,143,79,185,95,135,259
123-45-6789,Richie,Dennis,99,123,89,189,97,139,279
234-56-7891,Aho,Al,78,146,75,176,88,128,285... (3 Replies)
Discussion started by: ertang
3 Replies
9. Shell Programming and Scripting
i have a requirement like this
if the line contains from position 294 to 299 is equal to "prabhu" ,then print entire line .
i want to use awk
awk '{if(substr(294-299) == 'prabhu') print "line" }' filename (1 Reply)
Discussion started by: ptappeta
1 Replies
10. UNIX for Dummies Questions & Answers
Thanks to help from Don Cragun in post 302924174, I'm off and getting into trouble on my own (finally) with sed.
Here is my goal - insert \\r\n at the 60th character on each line and then every 76th character thereafter:
Input:... (3 Replies)
Discussion started by: gusbrown
3 Replies
LEARN ABOUT DEBIAN
jvocuhadju
jvocuhadju(1L) jvocuhadju(1L)
NAME
jvocuhadju - Lujvo picker (based on the rules in the reference grammar.)
SYNOPSIS
jvocuhadju [-v] [-a] [-l] tanru-component-1 [ ... tanru-component-n ]
DESCRIPTION
jvocuhadju is a program that reads a list of tanru-components (gismu or cmavo) on the command line, and constructs the possible short-form
lujvo corresponding to those components in sequence. The possible lujvo are displayed ranked in order of desirability, with their scores
shown based on the algorithm in the reference grammar. The lowest score is best.
Where a tanru-component is a cmavo containing an apostrophe, the apostrophe may be replaced by the letter "h" on the command line. This is
a convenience to avoid having to backslash-escape the apostrophe to hide it from the shell.
OPTIONS
-v Show the program version and exit.
-a List all possible lujvo for the input tanru (default is just the best 8).
-l Allow 4/5 letter rafsi to be picked even if a 3 letter form is available for any particular tanru component.
tanru-component-k
This is a gismu or cmavo which is one component of the word. Cmavo must have a rafsi corresponding to them.
SEE ALSO
jbofihe
Checks Lojban grammar checker and provides English translations of the individual words.
cmafihe
Provides English translations of Lojban words in the input, without checking the grammar. Useful for getting a rough translation of
grammatically invalid text.
FILES
BUGS
ju'oru'e so'imei (Surely there are many).
REFERENCES
http://go.to/jbofihe
Home page for the jbofihe project
http://www.lojban.org/
Home page of the Lojban community
http://www.rrbcurnow.freeuk.com/lojban/
My Lojban page.
AUTHOR
Richard Curnow <rpc@myself.com>
April 2000 jvocuhadju(1L)