Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

find

Find directories that do not contain subdirectories

August 9, 2022 by Magenaut

I’m writing script is ksh. Need to find all directory names directly under the current directory which contain only files, not subdirectories.

Categories Q&A, Unix & Linux Tags directory, find, ksh, ls, shell Leave a comment

How to search for a word in entire content of a directory in linux

August 9, 2022 by Magenaut

need to search for something in entire content

Categories Q&A, Unix & Linux Tags find, grep, linux, shell, xargs Leave a comment

use basename in find -exec?

August 9, 2022 by Magenaut

If I just use basename {} .txt, it will work:

Categories Q&A, Unix & Linux Tags basename, find Leave a comment

Using “find” non-recursively?

August 8, 2022 by Magenaut

Using /bin/find /root -name '*.csv' returns:

Categories Q&A, Unix & Linux Tags find, shell Leave a comment

What is the difference between find . and find . -print

August 8, 2022 by Magenaut

What is the difference between:

Categories Q&A, Unix & Linux Tags command-line, find Leave a comment

How to apply recursively chmod directories without affecting files?

August 8, 2022 by Magenaut

After I apply chmod -R to a directory, permissions are changed for everything within (files and directories). How can I add execute/search (x) permissions to directories without modifying the files?

Categories Q&A, Unix & Linux Tags chmod, find, shell Leave a comment

number of folders in a directory (recursive)

August 8, 2022 by Magenaut

I would like to print the number of folders (recursive, excluding hidden folders) in a given CWD / current directory. What command, or series of commands can I use to ascertain this information?

Categories Q&A, Unix & Linux Tags bash, directory, find Leave a comment

find exec ‘{}’ not available after >

August 8, 2022 by Magenaut

Exec allows us to either pass all arguments at once with {} + or to pass them one by one with {} ;

Categories Q&A, Unix & Linux Tags bash, find Leave a comment

Why does ‘find -exec cmd {} +’ need to end in ‘{} +’?

August 8, 2022 by Magenaut

Preface: I understand the difference between -exec {} ; & -exec {} +. I also don’t have a problem as such, I am just curious about the semantics of find.

Categories Q&A, Unix & Linux Tags find, history, posix Leave a comment

Find files in directory with paired names

August 8, 2022 by Magenaut

I’m running tests of a variable-size-and-contents test set. Data files are added and removed frequently. I’m looking for an automated way of gathering a file list.

Categories Q&A, Unix & Linux Tags directory, files, find, shell-script Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page10 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress