Sponsored Content
Top Forums UNIX for Advanced & Expert Users Recursive search for filenames containing .. Post 302577926 by Evert on Wednesday 30th of November 2011 09:33:28 AM
Old 11-30-2011
Question 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

non recursive search in the current directory only

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

recursive search and ftp

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

Recursive directory search using ls instead of find

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

recursive search and copy

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

Recursive search on pattern between two strings

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

Help needed - find command for recursive search

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

Recursive replacement of search string using sed

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

Recursive folder search faster than find?

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)

Search recursive

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
GOPHER(1)						      General Commands Manual							 GOPHER(1)

NAME
gopher - connect to gopher document server SYNOPSIS
gopher [-sSbDr] [-t title] [-p path] [-T type] [-i search term] [hostnameorurl] [port] DESCRIPTION
The gopher client is used to talk to gopher servers. Once you have started the gopher client, help on using it is available by pressing the ? key. The Internet Gopher is a distributed document delivery service. It allows a neophyte user to access various types of data residing on mul- tiple hosts in a seamless fashion. This is accomplished by presenting the user a hierarchical arrangement of documents and by using a client-server communications model. The Internet Gopher Server accepts simple queries, and responds by sending the client a document. The [hostname] of a gopher server may be specified at startup; if omitted, the default server for your site is used. You may also specify a URL (Uniform Resource Locator) for this argument. The [Port_number] of the server host may be specified at startup; if omitted you will use the default port specified at your site. The more or less standard and accepted Gopher port number on the Internet is 70. OPTIONS
-b starts the client on the bookmark page. The next few options are for more advanced users who want to start at a location other than the default, or to set up special aliases or shell-scripts to point the gopher client to seperate places. -p path specify a specific selector string to send to the gopher server on startup. -T type let the client know what type of object the -p option is pointing at. -i search term tell the client what to search for in the object defined by the -p and -T 7 options. -t title set the title of the initial screen for the gopher client. The last few options aren't really of interest to regular users, but are provided for system administrators who waht to provide a secure client, or who need to debug a client. -s or -S "secure mode" which means that you can't save or print the files that you browse. -s is for users without an account, while -S assumes the user has an account on this machine. One security feature is forced on, regardless of the state of these options, if the name of the user's shell ends in rsh; the 'O' (options) command is disabled so the user cannot select a shell as an application. -r tells the client that its user is remote. -D turns on the copius debugging output In-Session Options Press return or the right arrow key on the mini keypad to view a document or enter a directory. Press Control/W, Control/R, or Control/L to repaint your menu at any time. At any time, you may press ? to see a help file of commands available. BOOKMARKS
Bookmarks allow users to create their own personallized menus from those available on the variety of Gopher servers available worldwide. The following list of keystrokes aids in developing and maintaining the bookmarks. a : Add current item to the bookmark list. A : Add current directory/search to bookmark list. v : View bookmark list. d : Delete a bookmark/directory entry. MOVING AROUND
Use the arrow keys to move around. Use the Arrow Keys to move around. Up, k ...............: Move to previous line. Down, j .............: Move to next line. Right, Return .......: "Enter"/Display current item. Left, u ............: "Exit" current item/Go up a level. >, +, Pgdwn, space ..: View next page. <, -, Pgup, b .......: View previous page. 0-9 .................: Go to a specific line. m .................: Go back to the main menu. OTHER COMMANDS
s : Save current item to a file. S : Save current list of items to a file. D : Download a file. q : Quit with prompt. Q : Quit unconditionally (also Control/Z). r : goto root menu of current item. R : goto root menu of current menu. = : Display Technical information about current item. ^ : Display technical information about current directory. o : Open a new gopher server w : Open a new gopher server or item by URL O : Change options. f : Connect to an anonymous FTP host / : Search for an item in the menu. g : "Gripe" via email to administrator of current item. n : Find next search item. $, ! : Spawn to subprocess (use "logout" to return to session) Ctrl-T : Show host's local date and time. GOPHER OBJECTS
Menu entries ending with "/" are directories; additional characteristics for files (such as binary, sound, image, and others) are identi- fied within angle brackets. Item tag Type Description -------------------------------------------- (none) 0 file / 1 directory <) s sound file <Picture> I,g image file <Movie> ; movie file <HQX> 4 BinHexed Macintosh file <Bin> 9 binary file <PC Bin> 5 DOS binary file <CSO> 2 CSO (ph/qi) phone-book server <TEL> 8 telnet connection <3270> T telnet connection (IBM 3270 emulation) <MIME> M Multi-purpose Internet Mail Extensions file <HTML> h HyperText Markup Language file <?> 7 index-search item <??> (none) ASK form EXAMPLES
gopher gopher.tc.umn.edu Connect to the gopher server running on the computer gopher.tc.umn.edu gopher -p "1/Information About Gopher" gopher.tc.umn.edu 70 Connect to the gopher server running on port 70 of the computer gopher.tc.umn.edu and start at the menu retrieved with the selector string 1/Information About Gopher gopher -p 7/indexes/Gopher-index/index -T 7 -i FAQ mudhoney.micro.umn.edu Connect to the gopher server running on the computer mudhoney.micro.umn.edu and start at the menu of items matching the string FAQ in the index specified by the selector string 7/indexes/Gopher-index/index CONFIGURATION FILE FORMAT
The client gets configuration data from the system gopher.rc file and the user's .gopherrc files. The options in these files may be set by using the O key in the client. See the manual page for gopherrc for more information about these options. ENVIRONMENT VARIABLES
The client also checks for environment variables for its configuration information. The following variables can be used: GOPHER_TELNET: The program used to connect to telnet services GOPHER_TN3270: The program used to connect to TN3270 services GOPHER_HTML: The program used to read HyperText Markup Language documents. GOPHER_PRINTER: The program used to print from a pipe. FILES
$HOME/.gopherrc user bookmarks and configuration information /usr/local/lib/gopher.rc system default configuration information (default location - may be somewhere else on your system) /usr/local/lib/gopher.hlp client help file displayed by the '?' command (default location - may be somewhere else on your system) COPYRIGHT
The Internet Gopher(tm) software and documentation is copyright (c) 1991, 1992, 1993, 1994 by the University of Minnesota. Gopher has lim- itations on its use and comes without a warranty. Please refer to the file 'Copyright' included in the distribution. GOPHER(1)
All times are GMT -4. The time now is 11:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy