08-14-2010
List size information...
hi all,
i want to list only the size information and name of the file(s) and directories in current directory ..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I have a directory filling up. I need to determine the size of the files in the directory. How do I do that, what command should I run when I am in the directory?
Next question, can I expand the partition size? (10 Replies)
Discussion started by: komputersman
10 Replies
2. HP-UX
I'm new to HP-UX and am looking for the command that will allow to me determine the total size of listed files. I'm being told that my backup selection is exceeding my tape drive size and need to determine how much information is being backed up.
Help? (3 Replies)
Discussion started by: rgordon
3 Replies
3. UNIX for Dummies Questions & Answers
If I have a file x.txt that is 8 bytes... I want to enter
>> x.txt
8
I've played around with ls, and du... and they always list the file name. (2 Replies)
Discussion started by: ordano
2 Replies
4. Solaris
I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I need to do 100 files comparison after I sorted the files. There are no specific key for sorting so i plan to arrange the files based on the file size. The command that i used to sort the files by size is as per below:-
ls -l | sort +4rn | awk '{print $5, $9}'
The problem that i... (3 Replies)
Discussion started by: shahril
3 Replies
6. Shell Programming and Scripting
Hi All
I've googled around for this and can't see a way of doing it.
I have a file that contains a number of records that are layed out something like the following.
/path/to/directory/that/contains/a/file/I/need/filename.pdf
The path itself can vary both in terms of the names and the... (7 Replies)
Discussion started by: Bashingaway
7 Replies
7. UNIX for Dummies Questions & Answers
what command should i use for listing only the size and path of files ? (3 Replies)
Discussion started by: g0dlik3
3 Replies
8. HP-UX
how to get the file name list with size descriptive in hp-ux
Required output:
permission link user group size(with MB,KB,GB etc) date time name (7 Replies)
Discussion started by: Jewel
7 Replies
9. Shell Programming and Scripting
I am trying to create a script to list files by size. I was able to show a long listing before adding parameters (first comment) but nothing seems to work after trying to add them. If the first or only parameter is -r the output should be descending order by size, if the parameter is anything... (2 Replies)
Discussion started by: wbport
2 Replies
10. Shell Programming and Scripting
Am using Linux 3.10
years.txt is input source file which has the list of year like below
2013
2014
2015
2016
Other Input files are
XX_TEST1_YR2016_01012018.csv
XX_TEST1_YR2015_01012018.csv
XX_TEST1_YR2014_01012018.csv
XX_TEST1_YR2013_01012018.csv
XX_TEST2_YR2016_01012018.csv... (2 Replies)
Discussion started by: weknowd
2 Replies
LEARN ABOUT DEBIAN
fnpathfind
FNPATHFIND(3pub) C Programmer's Manual FNPATHFIND(3pub)
NAME
fnpathfind - find a file in a list of directories
SYNOPSIS
#include <publib.h>
int fnpathfind(const char *path, const char *tgt,
char *res, size_t max);
DESCRIPTION
pathfind looks for a file in a list of directories. The argument `path' is a colon separated list of directories, typically the contents
of an environment variable like PATH, MANPATH, or CDPATH. The function will go through the directories in the path and look in each direc-
tory for a file given in argument `target' until it finds it. Only an exact match is reported, no wild cards or globbing.
The names that are matched are formed by taking an element from the path and prepending it to target. An empty element means the current
directory, as does the name ".".
The function returns -1 for failure (not found or error), or the total size for the full name (the full name may have been truncated when
stored into result).
BUGS
The function uses dynamic memory allocation and may therefore fail due to insufficient memory.
It is not trivial to know in which directory the search ended. This makes is difficult to continue the search.
SEE ALSO
publib(3), fname(3)
AUTHOR
Lars Wirzenius (lars.wirzenius@helsinki.fi)
Publib C Programmer's Manual FNPATHFIND(3pub)