In GNU find
you can use -printf
parameter for that, e.g.:
find /dir1 -type f -printf "%f\n"
More Related Contents:
- How to exclude a directory in find . command
- How do I exclude a directory when using `find`?
- ‘find -exec’ a shell function in Linux
- How can I search for a multiline pattern in a file?
- Environment variable substitution in sed
- ./configure : /bin/sh^M : bad interpreter [duplicate]
- What does “&” at the end of a linux command mean?
- The ‘eval’ command in Bash and its typical uses
- How to parse XML using shellscript? [duplicate]
- How to join multiple lines of file names into one with custom delimiter?
- Is there a way to ‘uniq’ by column?
- Linux: copy and create destination dir if it does not exist
- How to determine whether a given Linux is 32 bit or 64 bit?
- Why is a tilde in a path not expanded in a shell script?
- Get program execution time in the shell
- How to handle more than 10 parameters in shell
- Linux bash: Multiple variable assignment
- How to sort a file in-place?
- Finding contents of one file in another file
- Changing default shell in Linux [closed]
- How to run a process with a timeout in Bash? [duplicate]
- Example of using named pipes in Linux shell (Bash)
- Passing variables in remote ssh command
- what does “-sh: executable_path:not found” mean
- How to get file creation date/time in Bash/Debian?
- How to join multiple lines of filenames into one with custom delimiter
- What is the difference between “./somescript.sh” and “. ./somescript.sh”
- Linux removing folders older than 1 year and more than 3 files
- How to set process group of a shell script
- Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]