06-04-2008
searching files inside directory
hey,
i need to use grep to search a bunch of header files inside a directory to return which file i can find the function i'm searching for in. how do i use wild cards to search through the files? i can only figure out how to search inside the directory, not inside the files that are in the directory.
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I've searched this site and not found this already, so if I missed on my search, sorry.
I need to pass in a variable to a script, where the first three characters of that variable represent a calendar quarter, and the last 2 characters are the year. I.E. Q0105 for Q1, Q0205 for Q2, and... (3 Replies)
Discussion started by: Rediranch
3 Replies
2. Shell Programming and Scripting
Hi everyone,
I need to search files starting with RPT_0, RPT_1,........ in a directory. How can I implement that through a shell script. Also I want to read the last line of each file after searching them. Can someone help me out in this regard.
One more thing how I can extract a particular... (7 Replies)
Discussion started by: srivsn
7 Replies
3. Shell Programming and Scripting
May be a simple question for experts here....
I need to get the list of files older than 30 days in the current folder. I tried "find", but it searches recursively in all the sub directories.
Can I restrict the recursive search and extract the files only from current directory ? (18 Replies)
Discussion started by: cxredd4
18 Replies
4. UNIX for Advanced & Expert Users
Hi Expert,
How can i able to see the directory and the files inside the directories.
Is it possible, please suggest.
Thanks
shaan (4 Replies)
Discussion started by: shaan_dmp
4 Replies
5. Solaris
Hi,
I am trying to write a script that will search in a particular directory and tell me how many files are in there. I then want to be able to email certain users of how many files are in that directory and what the file names are?
any help would be great as i am getting confused.
thanks (3 Replies)
Discussion started by: Pablo_beezo
3 Replies
6. Shell Programming and Scripting
I am new to shell scripting. Can someone help me out with this one please?
I need to write a script fot the following scenario:
I am currently in /parent directory.
I have a set of files in /parent/error_files directory
My script has to search for a file in /parent/erratic_files... (1 Reply)
Discussion started by: ss3944
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Im facing a problem that im stucked,
I have the following structure:
thales@pereirtc-vbox:/home/VfARM$ ls
code config doc lib manifest.bak manifest.rel manifest.v3 ns pub
if i try to execute zip -q -o arm.zip VfARM/* it will create a zip file with the folder VfARM.... (2 Replies)
Discussion started by: Thales.Claro
2 Replies
8. Shell Programming and Scripting
Hi,
I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files.
I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies
9. Shell Programming and Scripting
Hi,
I have used the command
cat * | grep -r <<String>> *
It returns:
cat : JAN : is directory
***********************
*********************
My directory structure:
log
- JAN
-catalina.out
-FEB
-catalina.out
-MARCH
... (11 Replies)
Discussion started by: nanthagopal
11 Replies
10. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
IFRIT(1) General Commands Manual IFRIT(1)
NAME
ifrit - a powerful tool that can be used to visualize 3-dimensional data sets
SYNOPSIS
ifrit [qt-options] [options] [dir_name]
DESCRIPTION
This manual page documents briefly the ifrit command. This manual page was written for the Debian distribution because the original pro-
gram does not have a manual page.
OPTIONS
-8 accepts an 8-bit display
-d starts IFRIT with all windows docked together into a single window.
-nf does not show the splash screen at start-up
-sw uses small font to reduce the QT window size
-rw IFRIT is being used remotely. This option can be used to minimize re-drawing of the widget windows.
-ni IFRIT is not idiosyncratic. This prompts IFRIT not to ask for a confirmation when exiting or running scripts.
-np number
sets the number of processors to use. Note that only some parts of IFRIT support parallel execution so far.
-i file_name
loads the state from the previously saved state file filename.
-b file_name
runs IFRIT in batch mode, taking animation script from the file filename. If filename starts with sign "+", standard directories
(see ENVIRONMENT VARIABLES ) will be prepended to the file name.
-h -help
show the list of available command-line options.
ENVIRONMENT VARIABLES
IFRIT understands the following environment variables (all in capitals):
IFRIT_DIR
The main IFRIT directory where you keep the variable file ifrit.nam and options file(s) ifrit.ini. If this variable is not set,
IFRIT assumes that current directory is the main directory.
IFRIT_DATA_DIR:
The default directory for the data files. If not set, IFRIT will start searching for the data files in the current directory.
IFRIT_MESH_DATA_DIR
The default directory for the mesh data files. If not set, IFRIT will start searching for the mesh data in the default data direc-
tory.
IFRIT_PART_DATA_DIR
The default directory for the particle data files. If not set, IFRIT will start searching for the particle data in the default data
directory.
IFRIT_VECT_DATA_DIR
The default directory for the vector field data files. If not set, IFRIT will start searching for the vector field data in the
default data directory.
IFRIT_TENS_DATA_DIR
The default directory for the tensor field data files. If not set, IFRIT will start searching for the tensor field data in the
default data directory.
IFRIT_IMAGE_DIR
The directory where IFRIT will place image and animation files. If not set, IFRIT will put image files into the current directory.
IFRIT_SCRIPT_DIR
The directory where IFRIT will place animation scripts. If not set, IFRIT will put scripts into its main directory.
IFRIT_PALETTE_DIR
The directory where IFRIT will place custom palettes. If not set, IFRIT will put palettes into its main directory.
SEE ALSO
The IFRIT help system.
AUTHOR
This manual page was adapted by Mark Hymers <mark.hymers@ncl.ac.uk> from the ifrit help system, for the Debian project (but may be used by
others).
September 09, 2004 IFRIT(1)