10-25-2012
Samples:
TEST1_B.tt
TEST1_B.txt
TEST1_B.tif
TEST1_B.mt
TEST1_B.q
TEST1_B.delta
I need them to be like:
Mar_L.tt
Mar_L.txt
Mar_L.tif
Mar_L.mt
Mar_L.q
Mar_L.delta
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename.
How do I rename a file so that the filename contains the system date and time. I want... (5 Replies)
Discussion started by: wayneb
5 Replies
2. Shell Programming and Scripting
I have the following
for ((i=100; i<=1000; i++))
do
this goes in increments of 1
I need it to go up in increments of 100, how is that done in a for loop? (1 Reply)
Discussion started by: gazz1982
1 Replies
3. Shell Programming and Scripting
Hi,
I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the current date as well as current time and rename it as filename_yyyymmddhhmmss.ext and move it into a... (7 Replies)
Discussion started by: ragavhere
7 Replies
4. UNIX for Dummies Questions & Answers
i know how to add two numbers using expr,
but if i have a file with hundreds of numbers, how do i add them all together, without typing them all one by one?
for example, file.txt contains
4
5
6
7
how can i give a command to add them, without typing
$ expr `4 + 5 + 6 + 7` (7 Replies)
Discussion started by: FOBoy
7 Replies
5. Shell Programming and Scripting
I have a set of folders like Jan1st, Jan2nd, Jan3rd... and so on.
I need to rename them to Jan1st2010,Jan2nd2010 .... and so on at one shot. (4 Replies)
Discussion started by: realspirituals
4 Replies
6. Shell Programming and Scripting
Hi, What will be the best way to connect (ssh) to hundreds of nodes and grep log files parallely from shell. Using for loop seems to be sequential. Are there any shell built in construct which could be used to achieve this? Is the sub shell any good here? (1 Reply)
Discussion started by: agent001
1 Replies
7. Shell Programming and Scripting
Need assistance to add code to hundreds of .html
Code will look like below and needs to be added below <html> tag:
<script>
Some .js code here
</script>
This will be used in Fedora release 7 (Moonshine).
I will appreciate any type of help and/or orientation.
Thank you! (4 Replies)
Discussion started by: Ferocci
4 Replies
8. Shell Programming and Scripting
Hi,
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
7 Replies
9. Shell Programming and Scripting
Hello friends,
I have hundreds files in hand, which need extract some data from logs and read these data into an input file.
Here I will explain in detail using these two files as attached. read some data from .log file and write it into the .in file.
**explanation is given inside two... (9 Replies)
Discussion started by: liuzhencc
9 Replies
LEARN ABOUT SUNOS
pal2rgb
pal2rgb(1) User Commands pal2rgb(1)
NAME
pal2rgb - convert a palette color TIFF image to a full color image
SYNOPSIS
pal2rgb [options] input.tif output.tif
DESCRIPTION
pal2rgb converts a palette color TIFF image to a full color image by applying the colormap of the palette image to each sample to generate
a full color RGB image.
OPTIONS
Input Data Options
The following input data options are supported:
-C Override the default behavior of pal2rgb to determine whether or not colormap entries contain 16-bit or 8-bit values. By
default, the colormap is inspected and if no colormap entry greater than 255 is found, the colormap is assumed to have only
8-bit values. Otherwise, 16-bit values, as required by the TIFF specification, are assumed. The -C option can be used to
explicitly specify the number of bits for colormap entries: -C 8 for 8-bit values, -C 16 for 16-bit values.
Output File Options
The following output file options are supported:
-c Specify a compression scheme to use when writing image data:
-c lzw Lempel-Ziv and Welch algorithm.
-c none No compression.
-c packbits PackBits compression algorithm.
-c zip Deflate compression algorithm.
If no compression-related option is specified, the input-file compression algorithm is used.
-p Explicitly select the planar configuration used to organize data samples in the output image:
-p contig Samples are packed contiguously. This is the default.
-p separate Samples are stored separately.
-r Write data with a specified number of rows per strip. By default, the number of rows per strip is selected so that each
strip is approximately 8 kilobytes.
OPERANDS
The following operands are supported:
input.tif The name of the input TIFF file.
output.tif The name of the output file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
NOTES
Only 8-bit images are supported.
Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.10 26 Mar 2004 pal2rgb(1)