Sponsored Content
Top Forums Shell Programming and Scripting Find directory name while traversing subdirectories Post 302418437 by arun_maffy on Tuesday 4th of May 2010 09:50:26 AM
Old 05-04-2010
Both the above commands are giving me only the first directory name from the parent directory where I search, like:

usr1
usr1
user2
user2
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

makefiles in a directory and subdirectories

I need to develop a makefile that spans across directories. For example, let's say i have an upper level directory (main) and about 2 subdirectories. I want my .cpp files and .o files to be in one subdirectory. I want my .a files to be in the other subdirectory. The .a files are made up of the... (0 Replies)
Discussion started by: benjie_asu
0 Replies

2. UNIX for Dummies Questions & Answers

Find all files created by a specified user in a directory and its subdirectories

Is there a command or shell script which can be used for Finding all files created by a specified userid in a directory and its subdirectories. Say, I want to find all such files in directory /abc as well as in all the subdirectories such as /abc/xyz or /abc/xyz/pqr aqnd so on which was created... (5 Replies)
Discussion started by: abhilashnair
5 Replies

3. Shell Programming and Scripting

Shell:Find a word in files in a directory and subdirectories

I'm looking to write a ksh code with will be alble to find a word like 'toto' in all files going from my current directory. eg. /doc ----------->have: text.c which "toto" /doc/usr-------->have: build.pc, help.java which "toto" /doc/usr/cach -->have: test.sh which "toto" /doc/build... (4 Replies)
Discussion started by: yeclota
4 Replies

4. UNIX for Dummies Questions & Answers

script for traversing directory

hi please suggest a korn script which will traverse all subdirectory in the current directory? (2 Replies)
Discussion started by: ilayans
2 Replies

5. UNIX for Dummies Questions & Answers

Find Files in a Directory Excluding Subdirectories

Hi, I have a filename Location.txt in a directory /abc. Similar name file is present in its subdirectory /abc/xyz. I want to find the file which is present only in /abc and not in /abc/xyz. Please any1 of u can provide a quick suggestion. Its very urgent. Thanks, Amol (2 Replies)
Discussion started by: Amol_Dicholkar
2 Replies

6. Shell Programming and Scripting

to parse a directory and its subdirectories and find owner name of files

hi all, i need to capture all the files in a directory and its subdirectories that have owner name different than the root owner. for one file it is " stat -c %U filename " but i need to search for each and every file and record it. thanks in advance (14 Replies)
Discussion started by: vyasa
14 Replies

7. Shell Programming and Scripting

Copying subdirectories of a directory to some other directory and renaming them

Hi, I am a newbie in shell scripting. I have to copy a particular sub-directory (data) from a large no. of directories (all in the same folder) and paste them to another directory ( /home/hubble/data ) and then rename all the subdirectories (data) as the name of its parent directory. please... (8 Replies)
Discussion started by: sholay
8 Replies

8. Shell Programming and Scripting

Find files only in current directory...not subdirectories

Hi, I have to find files only in the current directory...not in the sub directories. But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..I tried to use maxdepth..but it is not working in AIX. (2 Replies)
Discussion started by: vsachan
2 Replies

9. Shell Programming and Scripting

Find command to search files in a directory excluding subdirectories

Hi Forum, I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result. cd $dir... (8 Replies)
Discussion started by: jhilmil
8 Replies

10. Shell Programming and Scripting

Find/searching files in subdirectories excluding the fiels in Parent Directory

Hi All, requirement is to find and remove the files from sub directories but it should exclude the files from parent directory. At present i am using the below one but it finds and remove files from both parent and sub directories. find ${PATH} -type f \( -name securitas\* -o -name \*gz... (1 Reply)
Discussion started by: Naveenkk
1 Replies
SMPTEFrame(3)							    libltcsmpte 						     SMPTEFrame(3)

NAME
SMPTEFrame - Raw 80 bit SMPTE frame. SYNOPSIS
#include <ltcsmpte.h> Data Fields unsigned int frameUnits:4 unsigned int user1:4 unsigned int frameTens:2 unsigned int dfbit:1 unsigned int colFrm:1 unsigned int user2:4 unsigned int secsUnits:4 unsigned int user3:4 unsigned int secsTens:3 unsigned int biphaseMarkPhaseCorrection:1 unsigned int user4:4 unsigned int minsUnits:4 unsigned int user5:4 unsigned int minsTens:3 unsigned int binaryGroupFlagBit1:1 unsigned int user6:4 unsigned int hoursUnits:4 unsigned int user7:4 unsigned int hoursTens:2 unsigned int reserved:1 unsigned int binaryGroupFlagBit2:1 unsigned int user8:4 unsigned int syncWord:16 Detailed Description Raw 80 bit SMPTE frame. Definition at line 140 of file ltcsmpte.h. Field Documentation unsigned int SMPTEFrame::binaryGroupFlagBit1 Definition at line 160 of file ltcsmpte.h. unsigned int SMPTEFrame::binaryGroupFlagBit2 Definition at line 168 of file ltcsmpte.h. unsigned int SMPTEFrame::biphaseMarkPhaseCorrection Definition at line 153 of file ltcsmpte.h. unsigned int SMPTEFrame::colFrm Definition at line 146 of file ltcsmpte.h. unsigned int SMPTEFrame::dfbit Examples: tests/decoder.c. Definition at line 145 of file ltcsmpte.h. unsigned int SMPTEFrame::frameTens Definition at line 144 of file ltcsmpte.h. unsigned int SMPTEFrame::frameUnits Definition at line 141 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursTens Definition at line 166 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursUnits Definition at line 163 of file ltcsmpte.h. unsigned int SMPTEFrame::minsTens Definition at line 159 of file ltcsmpte.h. unsigned int SMPTEFrame::minsUnits Definition at line 156 of file ltcsmpte.h. unsigned int SMPTEFrame::reserved Definition at line 167 of file ltcsmpte.h. unsigned int SMPTEFrame::secsTens Definition at line 152 of file ltcsmpte.h. unsigned int SMPTEFrame::secsUnits Definition at line 149 of file ltcsmpte.h. unsigned int SMPTEFrame::syncWord Definition at line 171 of file ltcsmpte.h. unsigned int SMPTEFrame::user1 Definition at line 142 of file ltcsmpte.h. unsigned int SMPTEFrame::user2 Definition at line 147 of file ltcsmpte.h. unsigned int SMPTEFrame::user3 Definition at line 150 of file ltcsmpte.h. unsigned int SMPTEFrame::user4 Definition at line 154 of file ltcsmpte.h. unsigned int SMPTEFrame::user5 Definition at line 157 of file ltcsmpte.h. unsigned int SMPTEFrame::user6 Definition at line 161 of file ltcsmpte.h. unsigned int SMPTEFrame::user7 Definition at line 164 of file ltcsmpte.h. unsigned int SMPTEFrame::user8 Definition at line 169 of file ltcsmpte.h. Author Generated automatically by Doxygen for libltcsmpte from the source code. Version 0.4.4 Fri Apr 27 2012 SMPTEFrame(3)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy