In a directory I have X.txt,Y.txt,Z.txt files. I want to move these filenames into a single file like below:Out_file.txtX.txtY.txtZ.txtAny unix command to achieve this?
Write file names in to a file
shell;files