08-27-2009
for file in `find /home/project/ -type f`
do
rm -f $file
done
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to write a shell script which can delete all the files and directories recursively inside the specified directory but should not delete the specified directory.
Please some body help me in writing the script. (3 Replies)
Discussion started by: deepthi.s
3 Replies
2. Shell Programming and Scripting
i have 200000bytes size of a unix file i need to delete some text between two strings recursively using a loop with sed or awk . these two strings are : 1st string getting from a file :::2 nd string is fi...its constant . can anyone help me sed -n'/<1 st string >/,/fi/' <input_filename> is the... (2 Replies)
Discussion started by: santosh1234
2 Replies
3. Shell Programming and Scripting
Recently all of the php files on my server got injected with some dating site code and I'm trying to get rid of it all at once. I've tried using sed but I don't know how to escape it correctly because I don't really know what I'm doing. Could you guys help me with the syntax?
find ./* -type f... (2 Replies)
Discussion started by: ISOcrates
2 Replies
4. Shell Programming and Scripting
Hi all,
I would need a bash script to sync/transfer folders recursively via FTP/RSYNC
(I initially planned to use FTP but I heard RSYNC would fit a lot better for this job(?))
The situation:
3 different Linux servers
1. source
2. destination - Samba
3. Server where the script runs on
... (2 Replies)
Discussion started by: thibautp
2 Replies
5. UNIX for Advanced & Expert Users
Hi All,
We have a requirement to recursively delete the directories and its subdirectories older than 60 days based on timestamp (folder creation timestamp)under certain directory. However it has some specific requirements.
The directories will continue to be there upto any depth.
the... (0 Replies)
Discussion started by: rcvasu
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a dir structure that has many many subdirs, I would like to dump all the files from al the sub-dirs into a single directory? Can someone tell me the mv command that would do this please?
before example:
datadir/
datadir/datajan/jan.dat
datadir/datafeb/feb.dat
after example:... (1 Reply)
Discussion started by: CountryGent
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I want to delete all empty directories in a long directore tree structure. I want to use that from a script that will run on HP-UX 11. My definition of empty directory is that there is no regular file under it and directly beneath it. To elaborate, I have below directories.
/app/dev/java... (14 Replies)
Discussion started by: asutoshch
14 Replies
8. Shell Programming and Scripting
hi all
I want a script that will use ftp to copy folder and sub folders from source server to current server. if i use -r switch then it just copies folders for 5 level. (1 Reply)
Discussion started by: kashif.live
1 Replies
9. Shell Programming and Scripting
hello,
I'm trying to figure out which tool is best for recursively renaming and files or folders using the characters \/*?”<>| in their name. I've tried many examples that use Bash, Python and Perl, but I'm not much of a programmer I seem to have hit a roadblock.
Does anyone have any... (15 Replies)
Discussion started by: prometheon123
15 Replies
10. Shell Programming and Scripting
Hio, So I have a crontab delete of older files setup. This script works fine if I run them by each individual directory.
Problem is there are so many thousands of files and hundreds of directories and sub directories that I need to recursively have it go through and delete files by directory... (2 Replies)
Discussion started by: vsekvsek
2 Replies
LEARN ABOUT DEBIAN
sciteproj
sciteproj(1) General Commands Manual sciteproj(1)
NAME
SciteProj - a Project Manager for the SciTE editor
DESCRIPTION
SciteProj is a Project Manager for the SciTE editor - It is used to group a bunch of files into a project for easy access in SciTE giving
the possibility to group files in folders, and saves the project to disc in XML format. It is based on the program ScitePM by Roy Wood. It
uses the director interface of SciTE to communicate between SciTE and SciteProj.
OPTIONS
-s, --scite FILENAME
Sets the filename for the instance of SciTE to open.
-v, --version
Displays the version number of SciteProj
-g, --generate=XML_FILENAME
Generate a sciteproj project file with the name FILENAME from the contents of the current folder. This option will not consider
adding hidden files to the generated project.
-m, --max_depth=MAX_DEPTH
Set maximum depth of folders to read through to MAX_DEPTH when generating project file.
-h, --help
Display a short help
CONFIG FILE
The config file that SciteProj is using is named sciteprojrc, and is loaded from the directory that the glib function g_get_user_config_dir
is returning. Normally this is ($HOME)/.config/ - If this file isn't found, sciteproj searches for the file .sciteproj located in the
users $HOME directory. It is loaded on every program start. There is a menuitem in the program to open the file directly in SciTE for edit-
ing. If there isn't a .sciteproj in the user home when starting SciteProj, one will be created filled with default values. The following
options are supported in the config file:
xpos, ypos, xsize and ysize
Specifies the position and size of the program window on start
give_scite_focus
Specifies wether SciTE shall get focus when opening a file from SciteProj (TRUE or FALSE)
dirty_on_folder_change
Specifies wether SciteProj shall flag your project as dirty when you exapand or collapse a folder (TRUE or FALSE)
allow_duplicates
Specifies wether several files with the same name should be allowed in one project (TRUE or FALSE)
identify_sciteproj_xml
Specifies wether SciteProj shall try to recognize XML files saved by SciteProj (TRUE or FALSE)
search_xpos, search_ypos, search_width, search_height
The position of the search dialog when opened. If any of these values are set to -1, a default will be selected.
search_match_case
Should the search dialog check the Search match case option by default
search_match_whole_words
Should the checkbutton Match whole words be checked in the search dialog by defualt
search_give_scite_focus
Should the SciTE window be focused when double-clicking a search result in the search dialog?
search_file_alert_warning
If the project contains filename that doesn't exist on disk, should SciteProj give a warning during search?
AUTHOR
SciteProj was written by Andreas Ronnquist <gusnan@gusnan.se>.
Version 0.7.05 20 March 2012 sciteproj(1)