Sponsored Content
Full Discussion: FIND w/ multiple expressions
Top Forums Shell Programming and Scripting FIND w/ multiple expressions Post 302672713 by nitrobass24 on Monday 16th of July 2012 09:55:41 PM
Old 07-16-2012
Ahh i see.

Ok so i have
Code:
find / \( -type d -name nastmp -prune \) -o \( -fstype mvfs \) -o -print

But I am getting directories printed to the file instead of files only. Is there a way for me to specify that only files get written to log?

Last edited by Franklin52; 07-24-2012 at 08:34 AM.. Reason: Please use code tags for data and code samples, thank you
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Searching multiple files with multiple expressions

I am using a DEC ALPHA running Digital UNIX (formly DEC OSF/1) and ksh. I have a directory with hundreds of files that only share the extension .rpt. I would like to search that directory based on serial number and operation number and only files that meet both requirements to be printed out. I... (6 Replies)
Discussion started by: Anahka
6 Replies

2. Shell Programming and Scripting

Output section of file between two expressions multiple times

Attached is the exact ouput of a vmware VDR log file I am working with but what I am trying to achieve is as follows: I need to output sections of the file using the string "Normal backup" as the start and "Duration" as the end to seperate files so I can then manipulate them further to create... (2 Replies)
Discussion started by: jelloir
2 Replies

3. UNIX for Dummies Questions & Answers

Regular Expressions -- Find spaces outside

Hello, I need help with using grep and regular expressions.... I have a long list of about 1000 lines of Chinese flashcards. Here's a small excerpt: 意文 yìwén (given name) 貴姓 guìxìng (honorable surname) 貴 guì (honorable) 姓 xìng (one's surname is; to be surnamed; surname) 呢 ne (interrogative... (2 Replies)
Discussion started by: arduino411
2 Replies

4. UNIX for Dummies Questions & Answers

grep command to find multiple strings in multiple lines in a file.

I want to search files (basically .cc files) in /xx folder and subfolders. Those files (*.cc files) must contain #include "header.h" AND x() function. I am writing it another way to make it clear, I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings, header.h... (2 Replies)
Discussion started by: ritikaSharma
2 Replies

5. Shell Programming and Scripting

Script to find & replace a multiple lines string across multiple php files and subdirectories

Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ? The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories. So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies

6. Shell Programming and Scripting

Find 2 expressions then print in a single line

Guys, need help. I have a file that contains something like this: abc def ghi jkl I want to print the first and last line of the file and the output should be in a single line. so, output should be like this: abc jkl (3 Replies)
Discussion started by: solidhelix08
3 Replies

7. UNIX for Advanced & Expert Users

Using find and regular expressions

Hi Could you please advise how can one extract from the output of find . -name "*.c" -print only filenames in the current direcotry and not in its subdirectories? I tried using (on Linux x86_64) find . -name "*.c" -prune but it is not giving correct output. Whereas I am getting... (9 Replies)
Discussion started by: tinku981
9 Replies

8. Shell Programming and Scripting

Replacing Multiple spaces with a single space but excluding few regular expressions

Hi All. Attached are two files. I ran a query and have the output as in the file with name "FILEWITHFOURRECORDS.txt " I didn't want all the spaces between the columns so I squeezed the spaces with the "tr" command and also added a carriage return at the end of every line. But in two... (3 Replies)
Discussion started by: sparks
3 Replies

9. Shell Programming and Scripting

BASH - Regular Expressions :Looking for one word on multiple lines.

Im looking for a bash solution that will use Regular Expressions (not perl, sed or awk) to check the example data below and then give me a status. which would be just simply Match or Mismatch. SYS PS1 is present. Fan status: Normal Input Voltage status: Normal ... (5 Replies)
Discussion started by: popeye
5 Replies

10. Shell Programming and Scripting

sed find multiple expressions plus next next line

Hello I am trying to write sed code where it will look through the text for lines with specific expression "Started by user" and when found, will also add the following line, and also lines with another expression "Finished:" sed -n '/Started by user/, +1p, /Finished:/'... (4 Replies)
Discussion started by: dlesny
4 Replies
BOOTCHART(1)						      General Commands Manual						      BOOTCHART(1)

NAME
bootchart - render a chart from the statistical data recorded with bootchartd SYNOPSIS
bootchart [-f|--format FORMAT] [-n|--no-prune] [-o|--output-dir DIR] files ... DESCRIPTION
bootchart is used to process the log file created by bootchartd(1) (/var/log/bootchart.tgz by default). bootchart builds the process tree and renders a performance chart in different formats. The chart may then be analyzed to examine process dependency and overall resource utilization. OPTIONS
-f,--format FORMAT Sets the format of the image. Possible values are: png, eps, svg (default) -h, --help Display brief usage message. -n, --no-prune Do not prune the process tree. To make the resulting process tree more comprehensible, bootchart will prune the tree using various techniques (removing short-lived processes, merging processes, etc.). This option disables such behavior. -o, --output-dir DIR Sets the output directory for the resulting image. (default: .) -v, --version Show program version. FILES
/var/log/bootchart.tgz the default log file to parse (unless otherwise specified). SEE ALSO
bootchartd(1) AUTHOR
bootchart was written by Ziga Mahkovec <ziga.mahkovec@klika.si>. This manual page was written by Jorg Sommer <joerg@alea.gnuu.de>, for the Debian project (but may be used by others). 2006-03-05 BOOTCHART(1)
All times are GMT -4. The time now is 02:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy