10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
Discussion started by: cmccabe
5 Replies
2. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
3. Shell Programming and Scripting
Ive been a vocal of FIND command even before. Command below doesnt really give me the file that is older than two weeks.. Is there a script that will list me the log files that i want like for this date December 10, 2014, it shud list me the date between November 26, 2014 and below.
When i run... (6 Replies)
Discussion started by: kenshinhimura
6 Replies
4. Shell Programming and Scripting
he following are the files available in my directory
RSK_123_20141113_031500.txt
RSK_123_20141113_081500.txt
RSK_126_20141113_041500.txt
RSK_126_20141113_081800.txt
RSK_128_20141113_091600.txt
Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies
5. Shell Programming and Scripting
Hi
I need to copy a huge directory with thousands of files onto another directory but without *.WMV files (and without *.wmv - perhaps we need to use *.).
Pls advise how can I do that.
Thanks (17 Replies)
Discussion started by: reddyr
17 Replies
6. Shell Programming and Scripting
Hello,
I have several files in a specific directory.
A specific string in one file can occur in another files.
If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string.
Example.
file1
ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am trying to do the following;
bzcat data.in.bz2 | split -l 1000000 -d
this work great, except that once the files have been split, they are not in the directory I want them to be in. So I then have to move them, at times this can get hairy.
Is there anyway to specify where the... (4 Replies)
Discussion started by: amcrisan
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm the new user of linux/unix. Can I ask that anybody know how to use the linux/unix shortcut key to search a specific file from a list of directory?
For example, I know the file name that I want to search. But I forget which directory or location is my desired file put.Got any shortcut... (7 Replies)
Discussion started by: patrick87
7 Replies
9. Shell Programming and Scripting
Dear All,
Appreciate some help here.
I have a log of report. It located in several directory as below:
Directory:
mysscpr1
mysscpr2
mysscpr3
my_scnpr4
In the directory it contain hundred of files.
i need to find a specific files that contain 'invc2345' in the directory.
How... (7 Replies)
Discussion started by: selamba_warrior
7 Replies
10. Shell Programming and Scripting
i have a directory "ABC" with lots of old files and sub directories in it.
the issue now is i want to delete away files which are older than 15 days in "ABC" without deleting the files in the sub directories and without deleting the sub directory.
i tried using find command but it will drill down... (2 Replies)
Discussion started by: legato
2 Replies
cachefspack(1M) cachefspack(1M)
NAME
cachefspack - pack files and file systems in the cache
SYNOPSIS
packing-list ] cache-directory ] [ file ... ]
DESCRIPTION
The utility is used to set up and maintain files in the cache. This utility affords greater control over the cache, ensuring that the
specified files will be in the cache whenever possible.
Options
recognizes the following options:
Display pathname of the files to be cached.
Specify a
packing-list file containing a list of files and directories to be packed. Options within subdirectories and files can also
be specified. The format and rules governing packing-list are described in packingrules(4). Directories are packed recur-
sively. Symlinks that match a regular expression on a LIST command are followed. Symlinks encountered while recursively
processing directories are not followed.
Print a brief help summary of all the options.
View information about the packed files.
Pack the file or files specified by
file. This is the default behavior.
Strip "./" from the beginning of a pattern name.
Unpack the file or files specified by
file.
Unpack all files in the specified
cache-directory, under which the cache is stored.
Operands
recognizes the following operands:
file A path name of a file to be packed or unpacked.
RETURN VALUE
returns the following values:
Successful completion.
An error occurred.
EXAMPLES
Pack the file projects in the cache.
Pack the files projects, updates and master_plan in the cache.
Unpack the file projects from the cache.
Unpack the files projects, updates and master_plan from the cache.
Unpack all files in the cache1 cache directory.
Use the lists.pkg packing-list to specify files to be packed in the cache. The contents of lists.pkg are as follows:
This example will pack all files in the directory /src/junk with .c and .h extensions that do not contain the string SCCS in the file's
path name.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
cfsadmin(1M), mount_cachefs(1M), packingrules(4)
cachefspack(1M)