How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Hi,
I need unix shell script that can read the first column of a text file and matching each column string is a folder and i need to read files from the specified folder e.g
Main.txt has
Mike 690
Jhon 346
i need to read Mike first then open up the files in folder Mike in the same... (2 Replies)
Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
I need help on how I can accomplish my task. I hope someone can help me since I've researching and trying to accomplish this for hours now. Basically, I need to comment-out (or insert a # sign in the beginning of the line) a line when the line has the specific word I am searching. Example I have... (3 Replies)
I need to read a text file and insert a string every n lines, but also have the line counter restart when I come across a header string.
Line repeating working every 3 lines using code:
sed '0~3 s/$/\nINSERT/g' < INPUT/PATH/FILE_NAME.txt > OUTPUT/PATH/FILE_NAME.txt
I cannot seem to find... (1 Reply)
i am having file like this
#!/bin/bash
read -p 'Username: ' uservar
match='<color="red" />'
text='this is only a test
so please be patient
<color="red" />'
echo "$text" | sed "s/$match/&$uservar\g"
so desireble output what i want is if user type MARIA
this is only a test
so please... (13 Replies)
My server xml file has huge data part of which i'm sharing below.
I wish to add the below text held by variable "addthisline" after the closing braces i.e --> once the first </Connector> tag is found.
addthisline="I need to be inserted after the comments"
Thus my searchstring is... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT SUSE
img-gif
img-gif(n) img-gif(n)
NAME
img-gif - Img, Graphics Interchange Format (gif)
SYNOPSIS
package require Tk
package require img::gif ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::gif is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::gif.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Graphics Interchange Format (gif). More specifically img::gif extends Tk's photo image type.
The name of the new format handler is gif. This handler provides new additional configuration options. See section GIF OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in gif format (options -data and -file) is detected automatically.
[2] The format name gif is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section GIF OPTIONS.
GIF OPTIONS
The handler provides two options, one for reading from a GIF image, the other influencing the writing of such.
-index n
This option is for reading from GIF files containing more than one image (animated GIF's, GIF movies. When specified it will read
the n'th image in the data. The first image is at index 0 and will be read by default, i.e. when the option is not specified.
-interlaced bool
If the value of this option is set to true the image will be written using the interlaced sub-format of GIF. The default is to write
non-interlaced files. This option is not implemented yet.
IMAGE COMPRESSION
Instead of LZW the run-length encoding of Hutchison Avenue Software Corporation is used, also known as miGIF compression. The miGIF com-
pression routines do not, strictly speaking, generate files conforming to the GIF spec, since the image data is not LZW-compressed (this is
the point: in order to avoid transgression of the Unisys patent on the LZW algorithm.) However, miGIF generates data streams that any rea-
sonably sane LZW decompresser will decompress to what we want.
TRANSPARENCY
If you want to write images to disk which contain transparency information (e.g. GIF89) you need at least Tk 8.3.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
gif, image handling, tk
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-gif(n)