Answers for "bash copy first n lines of file"

1

copy first 10 lines of a file to another file in unix

sed -n '1,10p' filename > newfile
Posted by: Guest on February-26-2021
0

copy first n files linux

find . -maxdepth 1 -type f |head -1000|xargs cp -t "$destdir"
Posted by: Guest on August-31-2021

Code answers related to "bash copy first n lines of file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language