Here's a simple way to find and list all files in a UNIX directory and the containing subdirectories. This example script shows how to search for all files with the extension ".R":
A repository of programs, scripts, and tips essential to
genetic epidemiology, statistical genetics, and bioinformatics
Welcome to the Genome Toolbox! I am glad you navigated to the blog and hope you find the contents useful and insightful for your genomic needs. If you find any of the entries particularly helpful, be sure to click the +1 button on the bottom of the post and share with your colleagues. Your input is encouraged, so if you have comments or are aware of more efficient tools not included in a post, I would love to hear from you. Enjoy your time browsing through the Toolbox.
Showing posts with label find. Show all posts
Showing posts with label find. Show all posts
Friday, August 22, 2014
Monday, July 21, 2014
Microsoft Word Keyboard Shortcut for Find and Replace
I can't find an easy way to open the find and replace dialogue box in newer versions of Microsoft Word. There must be some way to access this by the ribbon or other menu in MS Word, but I can not seem to find it. What I have found, however, is an easy keyboard shortcut to find and replace text in a MS Word document. In the open file (.doc or .docx) just use the following shortcut keys and the find/replace window will appear:
CTRL + H
**Update: I found the point and click approach for bringing up the find and replace dialogue box! If you are on the home tab of newer MS Word versions, the button is located on the far right. There is a section for editing that includes a find, replace, and select menu.
Tuesday, March 11, 2014
Notepad++ Replace a Tab with a Newline
With the extended search mode in Notepad++, it is easy to replace non-character items using the Replace tool of Notepad++. First open the replace dialogue box and click the radio button next to Extended (\n, \r, \t, \0, \x...) in the Search Mode box on the bottom left. Now you are ready to look for these formatting expressions in your file. Below are some examples.
To replace all tabs with newlines:
Find what: \t
Replace with: \r\n
To replace all newlines with tabs:
Find what: \r\n
Replace with: \t
To replace all tabs with newlines:
Find what: \t
Replace with: \r\n
To replace all newlines with tabs:
Find what: \r\n
Replace with: \t
Thursday, May 16, 2013
UNIX Find File in Sub-directories
For a quick reference, here is some basic syntax for finding a particular file type in all UNIX sub-directories. In this example, I am searching for all python scripts in the current directory and all sub-directories.
Subscribe to:
Posts (Atom)
