I am trying to grab a folder and all the folders and files underneath it and send it from one computer to another. I basically want to compress the whole folder into a tar, tgz, or zip file so that it can be sent as one file. is there a command to compress a folder and all its contents into a tar... (7 Replies)
Hey all,
I'm looking for a command that will search a directory (and all subdirectories) and give me a file count for the number of files that contain specific characters within its filename. e.g. I want to find the number of files that contain "-a.jpg" in their name.
All the searching I've... (6 Replies)
Hi All,
Need a for loop which should run for number of files in a folder and should pass the file name as parameter to another shell script for each loop.
Please help me.
Thanks. (2 Replies)
Hi All,
When i give the ls -lrt to list out all files with total number of files , i get the output as
ls -lrt
total 72
-rw-r--r-- 1 hari staff 796 Jul 11 09:17 va.txt
-rw-r--r-- 1 hari staff 169 Jul 13 00:20 a.log
-rwxr-xr-x 1 hari staff 659 Aug... (9 Replies)
I have a folder named test/ and under that I have multiple directories and in each of the directory I have multiple log files. I want to know how many files exists under each sub directory.
test
|--quanrantine
|--logfile1
|--logfile2
|--spooling
|--logfile1
... (4 Replies)
We have a folder XYZ with large number of files (>350,000). how can i split the folder and create say 10 of them XYZ1 to XYZ10 with 35,000 files each. (doesnt matter which files go where). (12 Replies)
I have a folder with several files of which I want to eliminate all of the terms that they have in common using `awk`.
Here is the script that I have been using:
awk '
FNR==1 {
if (seen++) {
firstPass = 0
outfile = FILENAME "_new"
... (4 Replies)
Hi,
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
TEST01 APP_USER_PROFILE
USER03 APP_USER_PROFILE
TEST02 APP_USER_EXP_PROFILE
TEST04 APP_USER_PROFILE
USER01 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
LEARN ABOUT HPUX
du
du(1) General Commands Manual du(1)NAME
du - summarize disk usage
SYNOPSIS
type] [name]...
DESCRIPTION
The command gives the number of 512-byte blocks allocated for all files and (recursively) directories within each directory and file speci-
fied by the name operands. The block count includes the indirect blocks of the file. A file with two or more links is counted only once.
If name is missing, the current working directory is used.
By default, generates an entry only for the name operands and each directory contained within those hierarchies.
By default, when a symbolic link is encountered on the command line or in the file hierarchy, will count the size of the symbolic link
rather than the file referenced by the link, and will not follow the link to another portion of the file hierarchy.
Options
The command recognizes the following options:
Print entries for each file encountered
in the directory hierarchies in addition to the normal output.
For each name operand that is a directory for which file system swap has been enabled, print the number of blocks the swap
system is currently using.
If a symbolic link is specified on the command line,
will count the size of the file or file hierarchy referenced by the link. Unlike the option, it will not follow sym-
bolic links encountered during the traversal of the directory hierarchy.
Gives the block count in 1024-byte blocks.
If a symbolic link is specified on the command line or
encountered during the traversal of a file hierarchy, will count the size of the file or file hierarchy referenced by
the link.
Print messages about directories that cannot be read,
files that cannot be accessed, and so on. is normally silent about such conditions.
Print only the grand total of disk usage
for each of the specified name operands.
Restrict reporting to file systems of the specified
type. (Example values for type are and so on.) Multiple options can be specified. Disk usage is normally reported
for the entire directory hierarchy below each of the given name operands.
Restrict reporting to only those files
that have the same device as the file specified by the name operand. Disk usage is normally reported for the entire
directory hierarchy below each of the given name operands.
According to the standards, specifying more than one of the mutually-exclusive options and will not be considered an error. The last
option specified will determine the behavior of the utility.
EXAMPLES
Display disk usage for the current working directory and all directories below it, generating error messages for unreadable directories:
Display disk usage for the entire file system except for any or mounted file systems:
Display disk usage for files on the root volume only. No usage statistics are collected for any other mounted file systems:
WARNINGS
Block counts are incorrect for files that contain holes.
SEE ALSO df(1M), bdf(1M), quot(1M), standards(5).
STANDARDS CONFORMANCE du(1)