Hi,
I have files that are named front1.txt to front999.txt. They are all in the same directory. To change "front" to "back", I am doing something like this.
for file in *.txt; do
new=`echo $file | sed 's/^**/back/g'`
mv $file $new
done
My problem is what if files are named... (6 Replies)
I have a csv file in which there are numbers like
078976/9XXX
098754/8XXX
I want to replace the XXX with null. I want to know the command/code to do this.
I know how to replace the whole word/number. But don't know how to replace a part of it.
Thanks in advance,
Mihir (3 Replies)
Can anyone help me how I will extract all lines in a file where the word "worker" or "co-worker" in 2nd column exist. There are also word in 2nd column like "workers" or "worker2" but I don't want to display those lines.
Appreciate any help in advance! Thank you! (5 Replies)
Our email address is changing and I need to update 4000 htm pages.
I was told I command was something like this
Eg)
find docs/700_799/ -name "*.htm" -type f | xargs perl -pi -e 's/\/company-information\/legal-and-regulatory/\/legal-and-regulatory/g'
Is there away of not changing the date... (1 Reply)
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Hi
I need to Replace a part of string in between one complete string.
For e.g..
in the file the value is as:
jobnm_$code_xyz_001
In script we are having a variable code=$3, where $3=ab
final output should be jobnm_ab_xyz_001.
But it is not working. Your help will be... (1 Reply)
Hi All,
I have a file in which a number of lines are starting with similar first word but different next words.
I want to replace the any nth word(not 1st or 2nd) with another word.
Eg:- My file contains are like this:-
Ram is a boy.
Ram is a good boy.
Ram plays cricket.
Here I want to... (2 Replies)
Hello there,
I need some help.
I have a file containing this :
$ cat file
PARM1=(VAL11),PARM2=(VAL21,VAL22,VAL23),PARM3=(VAL31),PARM4=(VAL41,VAL42)
and I need to replace all the ',' by '|' but only those which are between brackets.
Output would be :... (10 Replies)
Hi Gurus,
I need to replace part of string in file, the string format is below: I can use ABCD to find string, then replace values after "=" sign
ABCD_XXX=value
ABCD_YYY=value
after replace
ABCD_XXX=new_value
ABCD_YYY=new_value
my OS is SunOS 5.10 Generic_150400-64 sun4v sparc sun4v
... (9 Replies)
Discussion started by: green_k
9 Replies
LEARN ABOUT DEBIAN
glschool
glschool(6x) XScreenSaver manual glschool(6x)NAME
glschool - a 3D schooling simulation
SYNOPSIS
glschool [-display host:display.screen] [-visual visual] [-window] [-root] [-wireframe] [-fps] [-delay number] [-nfish number] [-maxvel
number] [-minvel number] [-acclimit number] [-avoidfact number] [-matchfact number] [-centerfact number] [-targetfact number] [-minradius
number] [-momentum number] [-distexp number] [-goalchgf number] [-fog] [-drawgoal] [-drawbbox]
DESCRIPTION
Uses Craig Reynolds Boids algorithm to simulate a 3d school of fish. See <http://www.red3d.com/cwr/boids> for a description of the algo-
rithm and the original paper. This is a lightly modified version of the algorithm that supports goal attraction.
Many different behaviors are possible by tweaking the parameters. No sanity checking is performed on the command line params, so if you
want to use negative accelerations or minimum velocity that is larger than maximum velocity or that sort of thing, the simulation will try
to digest it.
It looks best with the highest number of fish that will give you an FPS of > 25 or so.
OPTIONS -visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-delay number
Per-frame delay, in microseconds. Default: 20000 (0.020 seconds.).
-wireframe | -no-wireframe
Render in wireframe instead of solid.
-fps Display the current frame rate, CPU load, and polygon count.
-fog | -no-fog
Whether to show foggy (cloudy) water.
-drawgoal | -no-drawgoal
Whether to show the school's attraction goal.
-drawbbox | -no-drawbbox
Whether to show the bounding box.
-fog | -no-fog
Whether to show foggy (cloudy) water.
-nfish number
Number of fish. Defaults to 100
-acclimit number
Acceleration limit. Defaults to 8.0
-minvel number
Minimum velocity. Defaults to 1.0
-maxvel number
Minimum velocity. Defaults to 7.0
-goalchgf number
Goal change frequency. Defaults to 50 (frames)
-avoidfact number
Avoidance acceleration factor. Defaults to 1.5
-matchfact number
Match avg velocity acceleration factor. Defaults to 0.15
-centerfact number
School centering acceleration factor. Defaults to 0.1
-targetfact number
Target attraction acceleration factor. Defaults to 80
-distexp number
Distance weighting exponent. Defaults to 2.2
-momentum number
Momentum. Defaults to 0.9
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO X(1), xscreensaver(1)COPYRIGHT
Copyright (C) 2005-2006 by David C. Lambert. Permission to use, copy, modify, distribute, and sell this software and its documentation for
any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software
for any purpose. It is provided "as is" without express or implied warranty.
AUTHOR
David C. Lambert
X Version 11 5.15 (28-Sep-2011) glschool(6x)