Skip to content
Advertisement

How do I copy first 3 lines and last 2 lines of a file, and create new file [closed]

So I’ve a question how do I copy first 3 lines and last 2 files in linux and put them into new file

So I have file: moja.txt and content in this file is

JavaScript

and I’d like to make new file kombinacija.txt and content in this file would be:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement