11-30-2011
Recursive search for filenames containing ..
Hi all,
Since my gopher server doesn't like filenames containing 2 or more consecutive dots in a filename, I'd like to do a search for them and replace them with... well, let's say underscores...
I've tried a oneliner or 2 from other posts, but they don't seem to work well with locating dots.
Who can help me out here? It is of course absolutely imperative that we keep the Gopher technology alive & kicking! ;-)
greetings,
Evert
If you're curious, visit gopher.meulie.net with your Gopher-enabled browser :-)
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: puppala
9 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: brahmi
1 Replies
3. UNIX for Advanced & Expert Users
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)
Discussion started by: newreverie
8 Replies
4. Shell Programming and Scripting
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)
Discussion started by: cabaciucia
1 Replies
5. Shell Programming and Scripting
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)
Discussion started by: krishmaths
1 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: sudeep.id
2 Replies
7. Shell Programming and Scripting
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)
Discussion started by: srinu.kadem
5 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Michael Stora
2 Replies
9. OS X (Apple)
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
gopherrc
GOPHERRC(5) File Formats Manual GOPHERRC(5)
NAME
gopherrc - configuration file for gopher(1)
DESCRIPTION
The gopherrc file contains a list of directives that alter the behaviour of the gopher(1) client. It is composed of lines of the form:
Token: Value
Tokens are case insensitive and the value field will change, depending on the token. A pound sign ("#") at the beginning of a line signi-
fies a comment line.
Gopherrc files are used in a number of places. There is a global gopherrc file (called gopherrc). This is usually placed in a systemwide
directory. A file with the same format called remotegopher.rc is also used by the gopher client when using the -r switch.
Also, an individual has their own customized version of this file in their home directory in the file .gopherrc. On VMS this file is called
GOPHERRC.
All of these files use the format described below.
Most people will set the values in this file by pressing the 'O' key to set options in the curses gopher client, rather than editing this
file directly. People considering editing this file on VMS should make sure their editor preserves the Stream_LF format of the file.
Quick pseudo grammar
map: <content type>,<display command>,<print command>
SearchBolding: <yes|no>
Bookmarks:
<bookmarks>
The following tokens are recognized
map:
maps a content type (such as text/plain, or image/gif) to commands to execute for displaying the document or printing the document, i.e.
The content type, display command, and printing command are separated by commas.
The sequence of %s is replaced with the filename of a temporary file containing the document to be printed or viewed.
If the command starts with the vertical bar (|) the command will be executed immediately and the document will be sent to the commands
standard input. Note this feature does not work on VMS.
If the display command is set to 'builtin', then the text file pager inside the gopher client will be used to display the item.
SearchBolding:
controls the clients display of search terms. If the value is 'yes', then search words will be bolded. Otherwise they'll be left alone.
Bookmarks:
The bookmarks in .link format follow. For more information on the format of a .link file, consult the gopherd(8) manual page.
Sample gopherrc file:
map: text/plain,builtin,lpr %s
map: image/gif,xv %s,
Bookmarks:
Type=1
Name=Bookmark #1
Host=gopher.tc.umn.edu
Port=70
Path=
#
Type=0+
Name=textfile
Host=foo.com
Path=0/readme
Port=70
SEE ALSO
Media Type Registration Procedure, March 1994, RFC 1590 gopher(1),gopherd(8)
GOPHERRC(5)