Hello all
i have big test file that has allot of structure text something like this :
<foo1 *.html>
<blah action>
somthing 1
somthing 2
</blah>
</foo1 >
now i will like to insert 2 more lines of text below the <blah action>
so it will be like :
<foo1... (1 Reply)
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
I searched and found "echo -n" and "printf" are solution for this, but they are not
here:
$ echo "hello" >> test
$ cat test
hello
$ echo -n "world" >> test
$ cat test
hello
world
$ echo -n " seriously?" >> test
$ cat test
hello
world seriously?
This is not successful... (15 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
LEARN ABOUT MINIX
pamdice
pamdice(1) General Commands Manual pamdice(1)NAME
pamdice - slice a Netpbm image into many horizontally and/or vertically
SYNOPSIS
pamslice -outstem=filenamestem [-width=width] [-height=height] [-verbose] [filename]
You can use the minimum unique abbreviation of the options. You can use two hyphens instead of one. You can separate an option name from
its value with white space instead of an equals sign.
DESCRIPTION
Reads a PAM, PBM, PGM, or PPM image as input. Splits it horizontally and/or vertically into equal size pieces and writes them into sepa-
rate files as the same kind of image.
See the -outstem option for information on naming of the output files.
The -width and -height options determine the size of the output pieces.
pnmcat can rejoin the images.
OPTIONS -outstem=filenamestem
This option determines the names of the output files. Each output file is named filenamestem_y_x.type where filenamestem is the
value of the -outstem option, x and y are the horizontal and vertical locations, respectively, in the input image of the output
image, zero being the leftmost and top, and type is .pbm, .pgm, .ppm, or .pam, depending on the type of image.
-width=width
gives the width in pixels of the output images. The rightmost pieces are smaller than this if the input image is not a multiple of
width pixels wide.
-height=height
gives the height in pixels of the output images. The bottom pieces are smaller than this if the input image is not a multiple of
height pixels high.
-verbose
Print information about the processing to Standard Error.
SEE ALSO pamcut(1), pnmcat(1), pgmslice(1), pnm(5)AUTHOR
put by Bryan Henderson in the public domain in 2001
31 January 2001 pamdice(1)