Probably need to add the "-depth" option to the find command else once a directory is renamed it will invalidate any renames that need to happen within it.
Hi
I would like to find the diff between two folders:
Ex:
Folder:1
html.java
go.java
ten.java
Folder:2html.java
go.java
ten.java
you.java
Questions comes:
Folder:1 contains a files with old version, know the files were modified and updated with the new version in Folder2.
I... (2 Replies)
Hey there!
I try to use 'find' to remove empty directories like this:
find . -depth -type d -empty -exec rm -rf {} ';'
It works just fine, but there are some directories i want to exclude.
So i tried to do sth like this:
find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
In current folder, there are many subfolders, subfolder's subfolders... under it.
How can I find out the empty folders with no files in it.
I only need the top folder list.
For example,
I have folders like below:
a/b/c
a/b/x/x.txt
a/s
a/s/y
I need get the folder a/s, but not... (6 Replies)
I'm no linux guru so any help would be greatly appreciated!
I need to output all folders that do not contain a file of a certain extension.
Currently I have the following
find / ! -name '*.txt' -printf %h\\n
This doesn't work because although it finds folders that do not contain *.txt,... (2 Replies)
I have multiple subfolders with multiple jpg
I want the group of files in each subfolder renamed to their index number (3 digits) in the folder, so:
folder/a.jpg = folder/001.jpg
folder/b.jpg = folder/002.jpg
folder/c.jpg = folder/003.jpg
folder2/1.jpg = folder2/001.jpg
folder2/2.jpg =... (2 Replies)
In response to a closed thread for degraff63 at
https://www.unix.com/shell-programming-scripting/108882-using-mv-find-exec.html
the following command might do it as some shells spit it without the "exec bash -c " part:
Find . -name "*.model" -exec bash -c "mv {} \`echo {} | sed -e 's//_/g'\`"... (0 Replies)
Hello!
I am new to this. I have many files from b_ap00 to b_ap80, and I need to move them to folder 00 to 80 respectively, where b_ap00 is in folder 00, b_ap01 is in folder 01.
On top of this, I need to rename the file once they are inside the folder to b_ot, and subsequently run it (ifort -o... (8 Replies)
HI guys here's hoping some on pout the can help
I have a large library of epub and mobi file creates some what by calibre.
Output of tree listing below
I would like to recursively rename the directories removing the brackets and numbers
I have been scratching my head over... (4 Replies)
Hi Team,
I am new to the linux commands and I really need help . I would be really thankful if I can get some inputs.
I have below folders in the path "/home/temp"
20170428
20170427
20170429
changes
tempI need to get the files generated in the last 15 mins in all the above folders... (4 Replies)
Discussion started by: JackJinu
4 Replies
LEARN ABOUT MOJAVE
gldepthfunc
GLDEPTHFUNC(3G)GLDEPTHFUNC(3G)NAME
glDepthFunc - specify the value used for depth buffer comparisons
C SPECIFICATION
void glDepthFunc( GLenum func )
PARAMETERS
func Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL,
GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS.
DESCRIPTION
glDepthFunc specifies the function used to compare each incoming pixel depth value with the depth value present in the depth buffer. The
comparison is performed only if depth testing is enabled. (See glEnable and glDisable of GL_DEPTH_TEST.)
func specifies the conditions under which the pixel will be drawn. The comparison functions are as follows:
GL_NEVER Never passes.
GL_LESS Passes if the incoming depth value is less than the stored depth value.
GL_EQUAL Passes if the incoming depth value is equal to the stored depth value.
GL_LEQUAL Passes if the incoming depth value is less than or equal to the stored depth value.
GL_GREATER Passes if the incoming depth value is greater than the stored depth value.
GL_NOTEQUAL Passes if the incoming depth value is not equal to the stored depth value.
GL_GEQUAL Passes if the incoming depth value is greater than or equal to the stored depth value.
GL_ALWAYS Always passes.
The initial value of func is GL_LESS. Initially, depth testing is disabled. Even if the depth buffer exists and the depth mask is non-
zero, the depth buffer is not updated if the depth test is disabled.
ERRORS
GL_INVALID_ENUM is generated if func is not an accepted value.
GL_INVALID_OPERATION is generated if glDepthFunc is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_DEPTH_FUNC
glIsEnabled with argument GL_DEPTH_TEST
SEE ALSO
glDepthRange, glEnable, glPolygonOffset
GLDEPTHFUNC(3G)