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)
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)
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)
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)
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)
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)
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)
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)
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)
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
lnptest
lnptest(1) General Commands Manual lnptest(1)NAME
lnptest - LNP Client Test Application
SYNOPSIS
lnptest
DESCRIPTION
lnptest is an LNP Daemon test client used to test the connection between lnptest and the LNP daemon through the Ir Tower to a corresponding
test program running in an RCX. See the FILES section for the location of the RCX test program source code (distributed with this pack-
age).
OPTIONS
lnptest does not support command-line options.
USAGE
To run the test:
- compile the lnptest.c RCX program
- start the lnpd daemon
- download the lnptest.lx program to the RCX
- (at the RCX) run the program just downloaded to the RCX
- run this lnptest program
- inspect the output looking for lack of failure messages
FILES
/usr/share/doc/lnpd/examples/rcx
In this directory is the source to the RCX-side program which is called lnptest.c but written to be compiled against BrickOS.
SEE ALSO lnptest2(1), lnpdll(1), lnpd(8)
You can find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems)
AUTHOR
lnptest was written by Martin Cornelius <Martin.Cornelius@t-online.de> This man page was written by Stephen Moraco <stephen@debian.org>
January 23, 2005 lnptest(1)