Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to find and get a file in an entire directory with an excluded directory specified? Post 303013823 by abdulbadii on Wednesday 28th of February 2018 11:14:39 PM
Old 03-01-2018
How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:

Code:
$  find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print

it'll just list entirely up
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

2. UNIX for Dummies Questions & Answers

Script to find a string in a directory/sub-directory

I'm trying to find this string 'preparing string IBE_Quote_W1_Pvt.SaveWrapper for quote_header_id’ in my Apache log file directory. The log file that contains this string may be in a parent direcotry or a sub-directory. I have tried 'grep' and 'awk' with no success. I would like to get the path... (3 Replies)
Discussion started by: gross
3 Replies

3. UNIX for Dummies Questions & Answers

how to zip the entire directory

my first question is how to zip the entire directory contents. second question is can we unzip the same file through windows environment. please help i need to complete it by EOD (3 Replies)
Discussion started by: bbc17484
3 Replies

4. Shell Programming and Scripting

tar the entire directory except one directory

Hi All, I need to tar the entire directory except one directory inside that. I have used the below command tar -cvfX test.tar bin/perl bin/ I need to tar all the directories inside the bindirectory except the perl directory Please help me in solving this :b: Regards, Kalai (4 Replies)
Discussion started by: kalpeer
4 Replies

5. Shell Programming and Scripting

Find file in a directory

Hi, I'm trying to write a script that search file in folder. I got problems with selecting specific file from the list of the files. when I runing the script I get a list of files instead of one specific file. I'm new with linux :) #!/bin/bash FILE=false ISFOUND=false while getopts... (6 Replies)
Discussion started by: SimonBASH
6 Replies

6. UNIX for Dummies Questions & Answers

cannot find file directory

hi, i use command at below to copy the file and put it in the new file (if no such file, it will create right ) cat id_rsa.pub >>~/.ssh/authorized_keys it give me error bash: /home/pc2/.ssh/authorized_keys : No such file or directory can anyone tell me why this happened ? thanks in... (1 Reply)
Discussion started by: Ericyue
1 Replies

7. AIX

Using restorevgfiles to restore entire directory from rootvg problems

I am trying to restore a specific directory and all sub-directories therein using a rootvg tape. I am using the following command to make the backup: mksysb -m -i -v /dev/rmt0 However, I am getting the following result: tctl status rmt0 Available 04-08-00-0,0 LVD SCSI 4mm Tape Drive... (10 Replies)
Discussion started by: herot
10 Replies

8. Shell Programming and Scripting

Looping through entire directory and count unique values

Hello, I`m a complete newbie to coding, please help with this problem. I have multiple files in a directory, I have to loop through the contents of each file and extract number of unique isoforms in that file. Each file is tab delimited and only the line with the first parent (column 3)... (1 Reply)
Discussion started by: ritakadm
1 Replies

9. Shell Programming and Scripting

Find every directory named XYZ under the DVLP directory

I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories? (7 Replies)
Discussion started by: emc^24sho
7 Replies

10. UNIX for Dummies Questions & Answers

Append two lines of text to php.ini in the entire directory tree.e

I am looking to write a script that will read the php.ini files on my web host. If the two lines do exist do nothing. If not append two lines to the end of it then move on to the next directory and open the next php.ini file. I have the beginning of one that was given to me on another web site but... (6 Replies)
Discussion started by: Larrykh465
6 Replies
remove directory(1m)													      remove directory(1m)

NAME
remove directory - Removes a value from a set-valued or single-valued attribute (including application-defined attributes) of a directory SYNOPSIS
cdscp remove directory directory-name attribute-name [= attribute-value] ARGUMENTS
The full name of the directory. The name of a particular attribute. Specify only one attribute at a time. See the cds_attributes file for the list of attributes and corresponding data types that your application uses. The value of a particular attribute. The value of an application-defined attribute is dependent on the type of attribute. DESCRIPTION
The remove directory command removes a value from a set-valued or single-valued attribute (including application-defined attributes) of a directory. If you do not specify a value, the command removes the entire attribute. This command can delete attributes created by the add directory and set directory commands. Usually this task is performed through the client application. See the OSF DCE Administration Guide for more information about attributes. Privilege Required You must have write permission to the directory. NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE. EXAMPLE
To remove the value 1 from the user-defined, set-valued attribute dirregion of a directory named /.:/sales, follow these steps: Read the cds_attributes file to check that the attribute dirregion is listed, as shown in the following display: OID LABEL SYNTAX 1.3.22.1.3.66 dirregion small Enter the following command to remove the value 1 from the attribute dirregion. cdscp> remove directory /.:/sales dirregion = 1 RELATED INFORMATION
Commands: add directory(1m), list directory(1m), set directory(1m), set directory to skulk(1m), show directory(1m) Books: OSF DCE Administration Guide remove directory(1m)
All times are GMT -4. The time now is 01:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy