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
xfishtank
XFISHTANK(1) General Commands Manual XFISHTANK(1)NAME
xfishtank - Fish swimming across your Root Window
SYNOPSIS
xfishtank [-c <color>] [-b <limit>] [-f <limit>] [-i <mult>] [-r <rate>] [-m <num>] [-C <num>] [-d] [-p <file>] [host:display]
DESCRIPTION
xfishtank is a animation program to simulate an Aquarium on your X desktop.
Each fish can have up to 255 colors, but on startup the program takes all the colors from all the fish, and squeezes them down to all fit
into the default colormap as best it can. Any fish can be any size in width and height. To make them look more like they are swimming,
fish are animated (Very simple 2 frame animation). Fish CANNOT swim over each other, they will turn around if they are about to collide.
OPTIONS -c color
Background color of the fishtank
-b limit
Number of bubbles (Default is set to 32)
-f limit
Number of fishes (Default is set to 10)
-i inter
Move interval (Default is set to 0.2)
-r rate Move frequency (Default is set to 0.2)
-m num Median cut to this many colors
-C num Use only this many color cells
-d Clip fish, swim on root window
-p file Fish swim on picture in file
-host:dpy
This option specifies the X server to contact.
SEE ALSO X(1), xsetroot(1x)AUTHORS
Eric Bina, <ebina@ncsa.uiuc.edu> (Original author)
Dave Black, <dlbb0@amdahl.com> (Linux port)
TJ Phan, <phan@aur.alcatel.com> (TrueColor Support)
Vincent Renardias <vincent@waw.com> (man page, Debian packaging)
Send bugs (or their reports, or fixes) here: <http://www.debian.org/Bugs/>.
V2.2 29 November 1996 XFISHTANK(1)