11-22-2001
Automatic House keeping in UNIX
I have a directory called 'test' which contains many junk files. I want to automate the clean-up task by removing all files which are older than one month. What would be the best option?
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok i was reading a book (sad) and it said to type in 'ftp' in Start/Run. I did but I know no commands for it. Can someone help me??? I also typed in 'telnet' and I know no commands for that either so I would like help on that...
Thanx
..The Nutcracker Elite.. (4 Replies)
Discussion started by: The Nutcracker
4 Replies
2. UNIX for Dummies Questions & Answers
Hi guys and gir.. emm
hey guys! (only kidding girls)
I have been asked to provide a tutorial on how to perform an automatic back up (to tape) for 23 sun sparc workstations networked using an ethernet setup under the UNIX operating system.
Sounds easy enough to you... I've never ever seen... (4 Replies)
Discussion started by: maross
4 Replies
3. UNIX for Advanced & Expert Users
Hello,
I am a beginner with korn shell scripting. I have got a text file that gets produced every night and I need to transfer it to a windows shared area.
Is there any command line script (e.g FTP) that I could use to transfer the file automatically without manual intervention everyday?
Any... (4 Replies)
Discussion started by: tagem
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am not aware whether any one has posted this early or not.
I am creating a house keeping script in which I give the user two options:
1. creating a zip file.
2. removing all files given by user.
Before taking any action I am asking user to
enter full path of file or files to be... (7 Replies)
Discussion started by: Rakesh Bhat
7 Replies
5. Shell Programming and Scripting
Hi
i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files
Thanks (2 Replies)
Discussion started by: bmkreddy
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Everyone!
I'm new with UNIX,so, sorry if this question seems really dumb.:( Anyway, I'd just like if it's possible to automatically inform someone (via mail or pop-up box or something) that a file has been recently uploaded/received to the UNIX box? If it is, any advice on how to get that... (1 Reply)
Discussion started by: jam04
1 Replies
7. HP-UX
Hi,
we have around 50 users and every month we need to change the password manually once its expire.
do we have any script to change the password automatically.
OS -HP-UX
Thanks in advance.. (6 Replies)
Discussion started by: periyasamycse
6 Replies
LEARN ABOUT SUSE
git-clean
GIT-CLEAN(1) Git Manual GIT-CLEAN(1)
NAME
git-clean - Remove untracked files from the working tree
SYNOPSIS
git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <path>...
DESCRIPTION
Cleans the working tree by recursively removing files that are not under version control, starting from the current directory.
Normally, only files unknown to git are removed, but if the -x option is specified, ignored files are also removed. This can, for example,
be useful to remove all build products.
If any optional <path>... arguments are given, only those paths are affected.
OPTIONS
-d
Remove untracked directories in addition to untracked files. If an untracked directory is managed by a different git repository, it is
not removed by default. Use -f option twice if you really want to remove such a directory.
-f, --force
If the git configuration variable clean.requireForce is not set to false, git clean will refuse to run unless given -f or -n.
-n, --dry-run
Don't actually remove anything, just show what would be done.
-q, --quiet
Be quiet, only report errors, but not the files that are successfully removed.
-x
Don't use the ignore rules. This allows removing all untracked files, including build products. This can be used (possibly in
conjunction with git reset) to create a pristine working directory to test a clean build.
-X
Remove only files ignored by git. This may be useful to rebuild everything from scratch, but keep manually created files.
AUTHOR
Written by Pavel Roskin <proski@gnu.org[1]>
GIT
Part of the git(1) suite
NOTES
1. proski@gnu.org
mailto:proski@gnu.org
Git 1.7.1 07/05/2010 GIT-CLEAN(1)