Is there an option to copy first 100 files from a directory to another location using the cp command? If not is there any other way to do this? Do i need to write a script?

2

1 Answer

cp $(ls | head -n 100) new_path/ 
1