Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

sed -n '1,10p' filename > newfile
Comment

copy first 100 lines from a file linux

head -n10 file.txt >> newfile.txt
echo "your line >> newfile.txt
tail -n +10 file.txt >> newfile.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: restart tomcat 9 ubuntu 
Shell :: update dart 
Shell :: all folder permissions terminal 
Shell :: execute as another user linux 
Shell :: docker compose v2 install 
Shell :: simple way to make a text field to accept numbers only with maximum number of length 13 digit and min 10 
Shell :: binding a mac to AD terminal 
Shell :: cannot delete /var/lib/php/sessions/ 
Shell :: linux list application installation 
Shell :: ubuntu "Read-only filesystem" 
Shell :: PowerShell cant run curl command 
Shell :: does jupyter notebook come with anaconda in ubuntu 
Shell :: how to fix could not fix var lock /var/lib/dpkg/lock ubuntu 
Shell :: bash message partial match 
Shell :: how to install prompt-sync in node js 
Shell :: how to install bun.sh 
Shell :: Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation. 
Shell :: add submodule 
Shell :: conda install pydub 
Shell :: docker stop and remove specific container 
Shell :: wsl install cmake 
Shell :: Disable MacBook from Booting Automatically 
Shell :: git command to change drive 
Shell :: docker run restart always 
Shell :: npm ERR! fatal: not a git repository: /home/node/app/../../.git/modules/ 
Shell :: grav permissions 
Shell :: git command line see log 
Shell :: awk trim every nth line 
Shell :: certbot dry run renew 
Shell :: install babel 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =