Well, first, I don't see why you need "ls -lrt". Do they need to print in date order?
But I still agree with isacs:
That will find only files (not directories) in /your/dir that have the word "date" before some numbers, then send each one to the line printer in the order in which it finds them.
Look at the name page for find for all finds of options, including ones to keep the search in the /your/dir directory, instead of trying to keep searching below it.
Hi,
I need to get some files from a server via ftp. normaly I use following scrip, it is worrking fine.
cd dir_name
ftp -v -n "10.76.170.17" << cmd
user "rbi" "rbi"
cd recordreceive
prompt... (0 Replies)
i have a file called file1
cat file1
i am namish
namish lives in India
India and namish both are good.
I want to delete all the occurences of namish in one shot,if i do it with sed i guess all the lines will be deleted containing the pattern.Suggest me any idea without AWK.
Thanks... (6 Replies)
Okay, so im setting up a script to start my internet dependent scripts once I am connected to the net. It got complicated because of the different networks I frequent but it goes something like this:
n=1
iwconfig wlan0 > wireless.txt
m= grep -c MGHS /home/jake/Scripts/wireless.txt
o= grep -c... (7 Replies)
i have a dir called logs. In it i have some 350 files how to move all those files from directory logs to a new dir called archive
I want to do it in single shot
Below the command i m trying but not getting
find . -name "CurrentCollector*" -exec mv {} archive \;... (2 Replies)
i have a directory in which i have Multiple files:
Following are they====
-rw-r--r-- 1 root root 886 Jan 21 16:38 trunkn.xsd
-rw-r--r-- 1 root root 244 Jan 21 16:38 trunknameCache.xml
-rw-r--r-- 1 root root 1240 Jan 21 16:38 subscribercache.xsd
-rw-r--r-- 1 root ... (1 Reply)
Is this possible?
#!/bin/ksh
for file in `*.idlesince`
do
while read inter time
do
printf "%s %s\n" "${inter}" "$(perl -e 'print scalar localtime('"${time}"') . "\n";')" >> "${file}.done"
done < "${file}"
done
The error I get is
line 9: router.idlesince: command not... (1 Reply)
Hi All,
requirement is to find and remove the files from sub directories but it should exclude the files from parent directory.
At present i am using the below one but it finds and remove files from both parent and sub directories.
find ${PATH} -type f \( -name securitas\* -o -name \*gz... (1 Reply)
Discussion started by: Naveenkk
1 Replies
LEARN ABOUT PLAN9
fc-cache
FC-CACHE(1)FC-CACHE(1)NAME
fc-cache - build font information cache files
SYNOPSIS
fc-cache [ -EfrsvVh ] [ --error-on-no-fonts ] [ --force ] [ --really-force ] [ [ -y dir ] [ --sysroot dir ] ] [ --system-only ] [
--verbose ] [ --version ] [ --help ] [ dir... ]
DESCRIPTION
fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font
handling.
If directory arguments are not given, fc-cache uses each directory in the current font configuration. Each directory is scanned for font
files readable by FreeType. A cache is created which contains properties of each font and the associated filename. This cache is used to
speed up application startup when using the fontconfig library.
Note that fc-cache must be executed once per architecture to generate font information customized for that architecture.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-E Raise an error if there are no fonts in dir or directories in the configuration if not given.
-f Force re-generation of apparently up-to-date cache files, overriding the timestamp checking.
-r Erase all existing cache files and rescan.
-s Only scan system-wide directories, omitting the places located in the user's home directory.
-v Display status information while busy.
-y Prepend dir to all paths for scanning.
-h Show summary of options.
-V Show version of the program and exit.
dir Directory to scan for fonts.
RETURN CODES
fc-cache returns zero if the caches successfully generated. otherwise non-zero.
FILES
%cachedir%/*-%arch%.cache-%version%
These files are generated by fc-cache and contain maps from file names to font properties. They are read by the fontconfig library
at application startup to locate appropriate fonts.
SEE ALSO fc-cat(1)fc-list(1)fc-match(1)fc-pattern(1)fc-query(1)fc-scan(1)
The fontconfig user's guide, in HTML format: /usr/share/doc/fontconfig/fontconfig-user.html.
AUTHOR
This manual page was written by Keith Packard <keithp@keithp.com> and Josselin Mouette <joss@debian.org>.
Aug 13, 2008 FC-CACHE(1)