Hi All,
I have a situation where I need to copy the files having the latest date.
For example I have a file by name bas100e1_jun05. I need to copy it to bas100e1. But when a file by name bas100e1_jul05 is put in the same directory the script should copy the file having the latest month which... (34 Replies)
Assume, I created one file three years back and I like to move the file to some other directory with the old date (Creation date)? Is it possible? Explain? (1 Reply)
hello
i have a requirement where i have a direcotry in which i get files in the format
STOCKS.20080114.dat
STOCKS.20080115.dat
STOCKS.20080117.dat
STOCKS.20080118.dat
i need to loop through the directory and sort by create date descending order and i need to process the first file.
... (1 Reply)
Hi,
I have below two situations to handle,
1. I have list of files with file names having date&time. I have to backup to old date files. say I have below files in a directory,
1. XX123_20101004010101.dat
2. XX124_20101004010201.dat
3. XX121_20101003010101.dat
4.... (6 Replies)
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Hi Everyone,
I am writing a shell script and I am struck here:
I need to find the latest file in a directory depending upon the date.
For example:
The files in the directory are:
Filename_bo_20110619
Filename_bo_20110620
Filename_bo_20110621
Filename_bo_20110622
So here, I want... (2 Replies)
i have files like
1)20131112_abc_01.csv and
2)20131113_abc_01.csv and
3)20131113_abc_02.csv
when i try to fetch the file in the next day. it shud pick the third file..
plz help me..
and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
I have files in the ABC_YYYYMMDD.zip format under a directory. Each zip file contains A text file in the ABC_YYYYMMDD.txt format.
I am trying to create a script that will Rename the zip files and their underlying text file replacing the datepart in them with .
For eg: in the case of... (1 Reply)
I believe there are couple of syntax issues in my script, couldn't find them :(
can someone help me with fixing it to make it work.
cd /abcde/
#get the latest filename excluding subdirs
filename=`ls -ltr | grep ^- | tail -1 | awk '{print $8}'`
#get system date and file timestamp and... (3 Replies)
dxmkfontdir(1X)dxmkfontdir(1X)Name
dxmkfontdir - Create a list of fonts for the X server.
Syntax
dxmkfontdir [directory-names]
Description
The dxmkfontdir command creates files that list font names and the font files to which the names correspond, for use when the X server
starts up. In each directory specified as a command argument, dxmkfontdir creates the directory's list of fonts and places it in a file
called fonts.dir. If you omit arguments, dxmkfontdir creates a fonts.dir file for the current directory.
The fonts.dir file lists each font file and gives the name of the font in that file. To obtain font names, dxmkfontdir searches the files
in the directory for a property named FONT. If the FONT property is absent, dxmkfontdir uses the names of PCF (.pcf), BDF (.bdf), and com-
pressed BDF (.bdf.Z) files, omitting their suffixes. If a font exists in multiple formats, the PCF format is used.
When the X server starts up, it looks for a fonts.dir file in each font directory in the font path. It also looks for a fonts.alias file
in each directory.
Font Aliases
You can create or edit the fonts.alias file to assign new names to existing fonts. X clients can then use the alias names to request fonts
from the server. A font alias file can be in one or any number of directories in the font path. It consists of two columns, separated by
white space. The first column lists aliases; the second column contains font name patterns. Aliases can reference fonts in directories
other than the one in which the alias file exists.
To embed white space in the alias name or the font name, enclose the name in quotation marks (""). To embed quotation marks (or any other
characters), precede them with a backslash (. The following are sample entries from a fonts.alias file:
courier10 fixed
/udir/sally/fonts/courier/10.pcf "-adobe-helvetica-bold-o-normal--
24-240-15-75-p-104-1508859-1"
If the fonts.alias file contains the string FILE_NAMES_ALIASES alone on a line, each file name in the directory (without its .pcf suffix)
is automatically translated as a font name alias. For example, a file named courier10.pcf would have the font name alias courier10.
See AlsoX(1X), dxfc(1X)dxmkfontdir(1X)