04-15-2002
File names changed from windows to Solaris
we have developed few files in windows platform and we have given the file names like
home_new.php,
testing.gif,
home_welcome.gif
home_about_us.html, etc. etc.
now we have copied all the windows files into unix machine. the
unix has converted all the above files something like
hom_00_new.php,
tes01_g.gif,
hom_01_wel.gif, etc etc.
so we have to change the above file names one by one. it is quite
difficult to do that as you know.
my questions are : why it has changed the file names?
how do we change file names as it like windows platform?
thanx in advance
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All:
I'm having a problem with transferring files from a CD to my AIX machine. I don't know if I am using the mount command properly. My problem is that when I take a CD that I have burned on my PC over to my AIX machine, whent the CD is mounted the file names have been changed (a more thorough... (3 Replies)
Discussion started by: GoEagles
3 Replies
2. Shell Programming and Scripting
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies
3. Solaris
Hello everybody,
please , I need an urgent help.
I reinstalled our server Sun X4150. What was changed:
our two disks were changed to raid1 and I installed a never version of Solaris 10 (previously the version from 12/2009 was used, now a version from 03/2010).
what I'm surprised, the... (3 Replies)
Discussion started by: freeangel
3 Replies
4. Solaris
Hi,
I have set the date on solaris system , but the the date is changed after rebooting the system . I was suspecting that it could sync with ntp server , so i disabled the NTP and checked, but still whenever i reboot the system , the date that i set is getting changed, Any idea how to come out... (7 Replies)
Discussion started by: thavamaniraja
7 Replies
5. Solaris
Hello
I am copying a tar from windows7 to Solaris with filezilla i could see, some characters in the name of the file get deleted.
I could see only substring of the filename
eg: original filename :abcdefghijklmnopqrstu.h
i can see like abcdefghijklm
solution to this problem is highly... (2 Replies)
Discussion started by: Revathi R
2 Replies
6. Shell Programming and Scripting
Hi All,
I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :(
which have similar names ( /var in root and var of some other directory ).:confused:
Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies
7. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
8. Solaris
We have 2 solaris 10 t5240 servers with static IP addresses on nxge0 I/F which were rebooted a few days back with a known good config that has been in place for years (for /etc/hosts, /etc/hostname.nxge0, /etc/netmasks, etc)
They are not using dhcp.
About the same time today, both of their... (7 Replies)
Discussion started by: hdatontodo
7 Replies
LEARN ABOUT PHP
imagecopymergegray
IMAGECOPYMERGEGRAY(3) 1 IMAGECOPYMERGEGRAY(3)
imagecopymergegray - Copy and merge part of an image with gray scale
SYNOPSIS
bool imagecopymergegray (resource $dst_im, resource $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int
$src_h, int $pct)
DESCRIPTION
imagecopymergegray(3) copy a part of $src_im onto $dst_im starting at the x,y coordinates $src_x, $src_y with a width of $src_w and a
height of $src_h. The portion defined will be copied onto the x,y coordinates, $dst_x and $dst_y.
This function is identical to imagecopymerge(3) except that when merging it preserves the hue of the source by converting the destination
pixels to gray scale before the copy operation.
PARAMETERS
o $dst_im
-Destination image link resource.
o $src_im
-Source image link resource.
o $dst_x
- x-coordinate of destination point.
o $dst_y
- y-coordinate of destination point.
o $src_x
- x-coordinate of source point.
o $src_y
- y-coordinate of source point.
o $src_w
-Source width.
o $src_h
-Source height.
o $pct
- The $src_im will be changed to grayscale according to $pct where 0 is fully grayscale and 100 is unchanged. When $pct = 100 this
function behaves identically to imagecopy(3) for pallete images, except for ignoring alpha components, while it implements alpha
transparency for true colour images.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imagecopymergegray(3) usage
<?php
// Create image instances
$dest = imagecreatefromgif('php.gif');
$src = imagecreatefromgif('php.gif');
// Copy and merge - Gray = 20%
imagecopymergegray($dest, $src, 10, 10, 0, 0, 100, 47, 20);
// Output and free from memory
header('Content-Type: image/gif');
imagegif($dest);
imagedestroy($dest);
imagedestroy($src);
?>
PHP Documentation Group IMAGECOPYMERGEGRAY(3)