You could then redirect the output of the find to a file "listfile" for example and then use the following to rename them, assuming that every dot (more than one consecutive) being replaced by an underscore ie. 3 dots = 3 underscores:
Just have to be careful that you you don't start your find with a dot as starting directory.
Hi,
Am trying for a script which should delete more than 15 days older files in my current directory.Am using the below piece of code:
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/ls -altr {} \;"
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/rm -f {} \;"
... (9 Replies)
Could someone help me in recursive search and ftp'ing the files to remote server?
The host machine will have
/dir1/dira/list_of_files1
/dir1/dirb/list_of_files2
/dir1/dirc/list_of_files3
.
.
.
so., I need to search from dir1 recursively (only one level down) and find all the files that... (1 Reply)
I was working on a shell script and found that the find command took too long, especially when I had to execute it multiple times. After some thought and research I came up with two functions.
fileScan()
filescan will cd into a directory and perform any operations you would like from within... (8 Replies)
Hello again.
Well, I need help again sooner as I thought. Now I want to search for files with a known name within all subdirs, and copy the to differently named files in the same directory.
For example if I had only one file to copy, I would just usecp fileName newFileNamebut to do this... (1 Reply)
Objective:
Recursively search all files under a directory for SQL statements that end with ";"
Sample input:
UPDATE table1
set col=val
UPDATE table2
set cola=vala
,colb=valb;
UPDATE table3
set col=val
Expected output:
UPDATE table2
set cola=vala
,colb=valb; (1 Reply)
Hi All
I have a requirement to find the file that are most latest to be modified in each directory. Can somebody help with the command please?
E.g of the problem.
The directory A is having sub directory which are having subdirectory an so on.
I need a command which will find the... (2 Replies)
Dear Unix Forum Group Members,
Please do let me know how I can replace the double pipe with single pipe recursively on single record.
Sample Input Data:
DN set|Call prefix||| Called number address nature
0||| *789|||||||ALL number types
0||| 00||||||||ALL number types
10||... (5 Replies)
I'm trying to find folders created by a propritary data aquisition software with the .aps ending--yes, I have never encountered folder with a suffix before (some files also end in .aps) and sort them by date. I need the whole path
ls -dt "$dataDir"*".aps"does exactly what I want except for the... (2 Replies)
before posting, I have tried to find my answer elsewhere. no luck.
I need to find a file buried in a folder somewhere.
Master folder has 10 sub folders.
each sub folder has folders too.
I found this but it does nothing
I am on Mac and use Applescript.
do shell script "find... (2 Replies)
Discussion started by: sbrady
2 Replies
LEARN ABOUT DEBIAN
roarmonhttp
roarmonhttp(1) System User's Manual: roarmonhttp roarmonhttp(1)NAME
roarmonhttp - CGI and inetd based streaming server emulation for RoarAudio
SYNOPSIS
roarmonhttp [--inetd]
DESCRIPTION
This program emulates a streaming server using RoarAudio. It can be run from via a webserver as CGI or via inetd in inetd mode. IN CGI
mode it is limited to client (listener) HTTP connections. In inetd mode it can handle source clients and gopher, too. There is no need
for a specal port for gopher. The protocol is detected per client at runtime.
OPTIONS --inetd
Enables inetd mode.
--server SERVER
Set Server to connect to. This may be usfull in inetd mode.
--rate, --bits, --channels, --codec
Sets the default rate, bits, channels or codec. Those option taking a argument for the given option. Codec names may be used.
--rel-id SID
Set the stream ID for the stream this stream is relative to.
--help Show a brief help.
EXAMPLES
Here is an example of a roarmonhttp listening on port 8000 using inetd:
8000 stream tcp nowait roard /usr/bin/roarmonhttp roarmonhttp --inetd
SEE ALSO inetd(8), inetd.conf(5), roartips(7), libroar(7), RoarAudio(7).
HISTORY
For history information see RoarAudio(7).
RoarAudio January 2010 roarmonhttp(1)