04-07-2006
I'm not so sure
I'm just a bit confused by the description, but generally spealking you prpbably need something like that below. Tweek it according to you requirements:
find /usr/exp/ -ctime +2 | xargs rm
"UNIX Essentials and Core" DVD explains it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I'm trying to remove empty sub-folders from 1 main folder using the find method, but the "- empty" parameter isn't recognized by my Unix version.
Any idea how to implement such thing?
Thanks. (3 Replies)
Discussion started by: biot
3 Replies
2. UNIX for Dummies Questions & Answers
Hey there!
I try to use 'find' to remove empty directories like this:
find . -depth -type d -empty -exec rm -rf {} ';'
It works just fine, but there are some directories i want to exclude.
So i tried to do sth like this:
find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Discussion started by: deTTo
5 Replies
3. Shell Programming and Scripting
Hi,
I am trying to use either awk or sed to drop the first two folders in a path. So if I had path /folder1/folder2/folder3/folder4.... I need to drop folder1&2, so the new path would be /folder3/folder4...
If folder1 and folder2 were the same all the time, this would be easy. But... (4 Replies)
Discussion started by: robertinohio
4 Replies
4. Red Hat
Hi,
I want to write a command to remove all the files from a folder and inner child folder without removing the child folders of parent folder.
like I have folder like this...
folder a/b/c
file a/test.sql
file a/b/test2.txt
file a/b/c/temp.jpeg
now I want to remove all... (2 Replies)
Discussion started by: mkashif
2 Replies
5. Shell Programming and Scripting
Hi,
I want to write a command to remove all the files from a folder and inner child folder without removing the child folders of parent folder.
like I have folder like this...
Code:
folder a/b/c
file a/test.sql
file a/b/test2.txt
file a/b/c/temp.jpeg
now I want to remove... (5 Replies)
Discussion started by: mkashif
5 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a folder that contains all my music. Recently, I started using a different media player, and I let it manage my music folder. It has sorted all my music neatly in folders by artist and album. However, all the old folders that the songs used to be in are still there, yet they are... (2 Replies)
Discussion started by: emveedee
2 Replies
7. UNIX for Dummies Questions & Answers
I use an extremely simple TAR function for files at work and I have a question about cleaning them up.
My command is TAR -cvf ExampleTarName.tar then the folder I wish to TAR.
When my TAR finishes and I double click it to check it unarchived beautifully (I don't do this with every file, duh)... (5 Replies)
Discussion started by: Dogtown24
5 Replies
8. Shell Programming and Scripting
Hi,
I need a way to remove all folders that contain "Quick" in their names in a directory called /var/tmp...
However all attemps I have tried won't work. :wall:
I so far tried
find /var/tmp -type d -name "Quick" | sudo xargs rm -rf
find . -name "Quicklook" -exec rm -rf {} \;
find .... (2 Replies)
Discussion started by: pasc
2 Replies
9. Shell Programming and Scripting
my data files are stored in such way like year->month->day-> data files, my requirement is to find out number of days of files from today to the starting day of storig files.
root directory = work/user/year->month->day-> data files
structure is as follows
2013->05->as of today there are 01... (7 Replies)
Discussion started by: princetd001
7 Replies
10. Shell Programming and Scripting
HI guys here's hoping some on pout the can help
I have a large library of epub and mobi file creates some what by calibre.
Output of tree listing below
I would like to recursively rename the directories removing the brackets and numbers
I have been scratching my head over... (4 Replies)
Discussion started by: dunryc
4 Replies
EXP(3) BSD Library Functions Manual EXP(3)
NAME
exp, expf, exp2, exp2f, expm1, expm1f, -- exponential functions
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
exp(double x);
float
expf(float x);
double
exp2(double x);
float
exp2f(float x);
double
expm1(double x);
float
expm1f(float x);
DESCRIPTION
The exp() and the expf() functions compute the base e exponential value of the given argument x.
The exp2(), and exp2f() functions compute the base 2 exponential of the given argument x.
The expm1() and the expm1f() functions computes the value exp(x)-1 accurately even for tiny argument x.
RETURN VALUES
These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions exp() and
expm1() detect if the computed value will overflow, set the global variable errno to ERANGE and cause a reserved operand fault on a VAX.
SEE ALSO
math(3)
STANDARDS
The exp() functions conform to ANSI X3.159-1989 (``ANSI C89''). The exp2(), exp2f(), expf(), expm1(), and expm1f() functions conform to
ISO/IEC 9899:1999 (``ISO C99'').
HISTORY
The exp() functions appeared in Version 6 AT&T UNIX. The expm1() function appeared in 4.3BSD.
BSD
September 13, 2011 BSD