The xargs will cause all the filenames to be sent as arguments to the 'rm -f' commands. This will save processes that are forked everytime '-exec rm -f' is run.
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Hi!
Can you please help me with one question?
Does rexec command have some limitation of the length of the deliveded cmd?
Thanks in advance,
Anta (2 Replies)
I want to find the files and delete all the files except the last file.
I am using find command , I am sending the find output to a file and getting all the lines except the last one and sending it to the remove command . This is not working. can anyone help me out to do it in the find command... (8 Replies)
Hello Friends,
Im trying to delete empty files in subdirectories with a command. I can find them checking only one directory in each step and then show them with my command like below moreover i could not add removing part:
ls -l */* | awk '{if ($5==0) printf "%3s %2d %s... (5 Replies)
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Hello out there,
Our system has a pdf generator that creates pdf files. We dont need them pas 120 days.
So I have this command in my crontab. I currently set it to "0" for testing. But normally have it set to -mtime 120 to remove files out of the folders from PDF out to several other potential... (7 Replies)
I have a big file having 100 K lines.
I have to read each line and see at 356 character position whethere there is a word "W" in it. If it is their then don't delete the line otherwise delete it.
There are two lines as one Header and one trailer which should remain same.
Can somebody... (5 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
LEARN ABOUT FREEBSD
grog
GROG(1) General Commands Manual GROG(1)NAME
grog - guess options for groff command
SYNOPSIS
grog [ -option ... ] [ files ... ]
DESCRIPTION
grog reads files and guesses which of the groff(1) options -e, -man, -me, -mm, -mom, -ms, -mdoc, -mdoc-old, -p, -R, -g, -G, -s, and -t are
required for printing files, and prints the groff command including those options on the standard output. A filename of - is taken to
refer to the standard input. If no files are specified the standard input will be read. Any specified options will be included in the
printed command. No space is allowed between options and their arguments. The only options recognized are -C (which is also passed on) to
enable compatibility mode, and -v to print the version number.
For example,
`grog -Tdvi paper.ms`
will guess the appropriate command to print paper.ms and then run it after adding the -Tdvi option.
SEE ALSO doctype(1), groff(1), troff(1), tbl(1), pic(1), eqn(1), refer(1), grn(1), grap(1), soelim(1)Groff Version 1.19.2 23 March 2013 GROG(1)