Find only regular files under current directory, and print them without “./
” prefix:
find -type f -printf '%P\n'
From man find, description of -printf
format:
%P File’s name with the name of the command line argument under which it was found removed.
More Related Contents:
- How to move or copy files listed by ‘find’ command in unix?
- How to pipe list of files returned by find command to cat to view all the files
- Unix find: multiple file types
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- What are file descriptors, explained in simple terms?
- Identifying and removing null characters in UNIX
- How do I remove the passphrase for the SSH key without having to create a new key?
- Why do shell script comparisons often use x$VAR = xyes?
- Why are ports below 1024 privileged? [closed]
- What’s the difference between nohup and a daemon?
- Equivalent of *Nix ‘which’ command in PowerShell?
- Is there a way to ignore header lines in a UNIX sort?
- How do I set $PATH such that `ssh user@host command` works?
- Print lines in one file matching patterns in another file
- What should we do to prepare for 2038?
- Unix find command, what are the {} and \; for?
- Need to link cmake project to dl library
- Why do programs in Unix-like environments have numbers after their name? [duplicate]
- What is the general syntax of a Unix shell command?
- How to attach a process in gdb
- How can I send an email through the UNIX mailx command?
- Convert decimal to hexadecimal in UNIX shell script
- What does the ^M character mean in Vim?
- Command-line Unix ASCII-based charting / plotting tool
- Setting environment variable in shell script does not make it visible to the shell
- What generates the “text file busy” message in Unix?
- How to remove EXIF data without recompressing the JPEG?
- Remove line breaks in a FASTA file
- What are the dark corners of Vim your mom never told you about? [closed]
- In a unix shell, how to get yesterday’s date into a variable?