Hi!
I need the following script:
- All numbers in a filename (0-9) have to be replace by a String ("Zero"-"Nine")
- The script has to go through all the files in the current directory and has to replace the numbers as described above...
I have no idea how to do this...
Thanks!
Michael (5 Replies)
hey,
I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00)
i want all the numbers to be in european notation.
the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of:
sed 's/,/\./'... (2 Replies)
hello everyone
i searched the net and i could not find script for this request.
i believe sed command will do it but i'm not sure about how.
my file contains thousands of records, the following is sample:
BEGIN
ASX15001
BEGIN
ASX15000000500020101230
ASX18001020070002010123... (10 Replies)
hello every one
I have file with following records
begin
ASX120016719
ASX190006729
ASX153406729
ASX190406759
ASX180006739
end
for each record there is ASX word then 9 digits after it (NO spaces included)
what i want is to :
1- skip ASX
2-skip first 2 digits after ASX word... (16 Replies)
Dear board,
(I am trying to post this the 3rd time, seems there's some conflicts with my firefox with this forum, now use IE)
------
yes, I have searched the forum, but seems my ? is too complicated.
------------origianl file ---------------
\storage\qweq\ertert\ertert\3452\&234\test.rec... (4 Replies)
I have looked around and there are several examples of how to use sed, but I don't think any of them help me very much with what I am trying to do.
I have a text file like this....
1! SRCNAM = 00001 !
1! X = 50.0000, 0.0000,... (10 Replies)
Hello all. I am a beginner UNIX user who is using UNIX to work on a bioinformatics project for my university.
I have a bit of a complicated issue in trying to use sed (or awk) to "find and replace" bases (letters) in a genetics data spreadsheet (converted to a text file, can be either... (3 Replies)
Greetings. I have a three column file, and there are some numbers in the second column that are <1. However I need all numbers to be positive, thus need to replace all those numbers with just one. I feel like there must be a simple way to use awk to find these numbers and sed to replace but can't... (5 Replies)
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
* linux
* computers
* labs
* questions
to >>>>
this file contain a list
1. linux
2. computers
3. labs
4. questions (7 Replies)
I have a file that looks like this:
n1 1
n2 1
n3 1
n4 3
n4 3
n2 5
n2 5
n2 5
n2 5
n3 5
n3 5
n4 6
n7 6
that is a name followed be a descriptive number.
I want to make these numbers sequential starting from 0 but without changing the "neighbours" each name belongs to. So the above... (3 Replies)
Discussion started by: FelipeAd
3 Replies
LEARN ABOUT DEBIAN
vwright
VWRIGHT(1) General Commands Manual VWRIGHT(1)NAME
vwright - normalize a RADIANCE view, shift it to the right
SYNOPSIS
vwright [ view options ] distance
vwright [ view options ] name
DESCRIPTION
In the first form, vwright shifts a RADIANCE view the specified distance to the right, putting out a complete set of view parameters in a
single line on the standard output. This utility is most often used to compute a right-eyed view from a left-eye view for stereo imaging.
If no options are specified on the command line, vwright reads a view from its standard input.
The distance given is in world coordinate units. A negative value indicates a shift to the left rather than the right.
The second form substitutes a name prefix in place of the shift distance, and produces constant assignments on the standard output suitable
for passing directly to rcalc(1). For a given prefix N, the constant names are as follows:
Nt: view type ('v'==1,'l'==2,'a'==3,'h'==4,'c'==5,'s'==6)
Npx: view point x value
Npy: view point y value
Npz: view point z value
Ndx: view direction x value (normalized)
Ndy: view direction y value (normalized)
Ndz: view direction z value (normalized)
Nd: view focal distance
Nux: view up vector x value (normalized)
Nuy: view up vector y value (normalized)
Nuz: view up vector z value (normalized)
Nh: view horizontal size
Nv: view vertical size
Ns: view shift
Nl: view lift
No: view fore clipping distance
Na: view aft clipping distance
Nhx: derived horizontal image vector x value (normalized)
Nhy: derived horizontal image vector y value (normalized)
Nhz: derived horizontal image vector z value (normalized)
Nhn: derived horizontal image vector multiplier
Nvx: derived vertical image vector x value (normalized)
Nvy: derived vertical image vector y value (normalized)
Nvz: derived vertical image vector z value (normalized)
Nvn: derived vertical image vector multiplier
EXAMPLES
To start rpict(1) on a view .06 meters left of the view in the file "right.vf":
rpict `vwright -.06 < right.vf` scene.oct > right.hdr &
To move the rad(1) view named "left" 2.5 inches to the right and render from there:
rad -v "right `rad -n -s -V -v left examp.rif | vwright 2.5`" examp.rif &
To pass a view to rcalc for conversion to some other view:
rcalc -n -e `vwright orig < orig.vf` -f viewmod.cal -o view.fmt > new.vf
AUTHOR
Greg Ward
SEE ALSO pdfblur(1), rad(1), rcalc(1), rpict(1), rvu(1)RADIANCE 8/29/96 VWRIGHT(1)