I need to move a bunch of files into folders that have the same name. I wanted to either do this with some filter command or some type of batch file that I could save that would already include all of the mv commands since I will have to do this process often. Whatever method you think is easier.
... (7 Replies)
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (2 Replies)
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (4 Replies)
Hi All
I need a script to manipulate files based on a filename:
example filename: 66600_042706.pdf
the script will create a directory 66000 only if this directory is not existing. If that directory is existing it will just move the file to 66000/666000_042706.pdf
in addition, i want to... (4 Replies)
I am using ksh93 on Solaris.
Ok, this may seem like a simple request at first. I have a directory that contains sets of files with a YYYYMMDD component to the name, along with other files of different filespecs. something like this:
20110501_1.dat
20110501_2.dat
20110501_3.dat... (2 Replies)
Move all files starting with a specific name to different directory.
This shell script program should have three parameters
File Name
Source Directory
Destination Directory
User should be able to enter ‘AB_CD*' in file name parameter. In this case all the files starting with AB_CD will... (1 Reply)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (1 Reply)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (7 Replies)
Hi All,
Really stuck up with a requirement where I need to move a file (Lets say date_Employee.txt--the date will have different date values like 20120612/20120613 etc) from one directory to another based on creation/modification dates.
While visiting couple of posts, i could see we can... (3 Replies)
Discussion started by: dsfreddie
3 Replies
LEARN ABOUT PHP
jdmonthname
JDMONTHNAME(3) 1 JDMONTHNAME(3)jdmonthname - Returns a month nameSYNOPSIS
string jdmonthname (int $julianday, int $mode)
DESCRIPTION
Returns a string containing a month name. $mode tells this function which calendar to convert the Julian Day Count to, and what type of
month names are to be returned.
Calendar modes
+-----+--------------------------------------+---+
|Mode | | |
| | | |
| | Meaning | |
| | | |
| | Values | |
| | | |
+-----+--------------------------------------+---+
| 0 | | |
| | | |
| | Gregorian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 1 | | |
| | | |
| | Gregorian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 2 | | |
| | | |
| | Julian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 3 | | |
| | | |
| | Julian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 4 | | |
| | | |
| | Jewish | |
| | | |
| | Tishri, Heshvan, Kislev, Tevet, She- | |
| | vat, AdarI, AdarII, Nisan, Iyyar, | |
| | Sivan, Tammuz, Av, Elul | |
| | | |
| 5 | | |
| | | |
| | French Republican | |
| | | |
| | Vendemiaire, Brumaire, Frimaire, | |
| | Nivose, Pluviose, Ventose, Germinal, | |
| | Floreal, Prairial, Messidor, Thermi- | |
| | dor, Fructidor, Extra | |
| | | |
+-----+--------------------------------------+---+
PARAMETERS
o $jday
- The Julian Day to operate on
o $calendar
- The calendar to take the month name from
RETURN VALUES
The month name for the given Julian Day and $calendar.
PHP Documentation Group JDMONTHNAME(3)