I have the three following files available in the directory. But the job should be able to read only the first two files. Could any one help me in writing command to list only the first two files and omit the last file. I used
ls -1 LSM_REP* > final.lst
. It is copying all the three files. But I need only first two files to be copied over. Please help me.
Similary, The file with 6 underscores should be separated. If i use 6 underscores it will list both the files. I couldn't figure out a way to separate these files