It always pays off to be as specific as possible ("how many oldest files do you need?") and to post OS and find versions so you dont't get advice that doesn't work on your system. Try
if your find provides the printf action.
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 Replies)
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
Hi:-
I need help with a script I need to modify: - what's the best/easiest way to find out the oldest file in a directory and then move this file to another directory?
Thanks, (5 Replies)
Hi all,
I am a newbie to scripting and I need your help regarding finding the oldest file in a particular directory. My intention is to remove that oldest file.
Are there any options available with the "find" command to do this..
Thanks in advance for your help
Pavan (4 Replies)
I am trying to determine the oldest and most recent files in a huge directory. I am using an ls -tr statement outside my find statement. The directory is too big and I am getting an "arg list too long" error. Is there something I can put in my find statement that doesn't create a list to... (2 Replies)
Hi
I am want to create a script where the file gets moved from the current folder to a folder transfer based on the oldest first. This script should run one file at a time using a loop. I want it as a loop because I want to do some processing while I have one file. Can anyone guide me on this? (2 Replies)
I need a script to clean up the files on our backup system. I was hoping this would be simple for someone to put together for me.
I'm sure I could do it, but I'm a bash n00b so it would definitely not be efficiently or within a reasonable amount of time. :(
Requirements:
- Root of backups... (3 Replies)
Trying to delete my 3 oldest files.
I am learning despite the many questions.
This shows the files.
ls -1r /media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/Ubuntu_Documents.zip_* | tail -n+6adding this on did not work.
| -exec rm {}------ Post updated at 05:43 PM ------
This works, but I... (15 Replies)
Discussion started by: drew77
15 Replies
LEARN ABOUT SUNOS
apropos
apropos(1) User Commands apropos(1)NAME
apropos - locate commands by keyword lookup
SYNOPSIS
apropos keyword...
DESCRIPTION
The apropos utility displays the man page name, section number, and a short description for each man page whose NAME line contains keyword.
This information is contained in the /usr/share/man/windex database created by catman(1M). If catman(1M) was not run, or was run with the
-n option, apropos fails. Each word is considered separately and the case of letters is ignored. Words which are part of other words are
considered; for example, when looking for `compile', apropos finds all instances of `compiler' also.
apropos is actually just the -k option to the man(1) command.
EXAMPLES
Example 1: To find a man page whose NAME line contains a keyword
Try
example% apropos password
and
example% apropos editor
If the line starts `filename(section) ...' you can run
man -s section filename
to display the man page for filename.
Example 2: To find the man page for the subroutine printf()
Try
example% apropos format
and then
example% man -s 3s printf
to get the manual page on the subroutine printf().
FILES
/usr/share/man/windex table of contents and keyword database
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdoc |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO man(1), whatis(1), catman(1M), attributes(5)DIAGNOSTICS
/usr/share/man/windex: No such file or directory
This database does not exist. catman(1M) must be run to create it.
SunOS 5.10 20 Dec 1996 apropos(1)