09 Mar How to output only file names (with spaces) in ls -Al? by kayals in Linux, System Administration, UnixComments find ./ -printf "%f\n" or… for n in *; do printf '%s\n' "$n"; done Related posts:[sed] Delete the lines lying in between two patternsUpgrade PHP from version 7.2 to 7.4 on CentOSSSH: Run Bash Script on Remote Server Tags: cli,Linux