Let’s say you’ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.
Example, you want to get from this:
1 2 3 4 5 6 7 8 9 […]
|
|||||
Let’s say you’ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this. Example, you want to get from this: 1 2 3 4 5 6 7 8 9 […] April 26th, 2011 | Tags: arch, awk, bash, command line, guide, how to, HowTo, isadora, julia, katya, linux, linux mint, lisa, remove every n line, remove every other line, script, sed, text file, tutorial, Ubuntu |
Category: Arch Linux, Blog, Command Line, HowTo, Linux, Posts, Ubuntu
One comment
|
AboutAlex – Roboticist Currently working at the Bristol Robotics Lab & ExtraCare Charitable Trust You’re free to redistribute anything you find on here, unless it states otherwise, as long as you are not selling it for profit and you link back to my site. Cheers. Tag Cloud9.10
10.04
10.10
11.04
11.10
12.04
android
arch
bash
command line
debian
error
fedora
fix
guide
hack
how to
HowTo
install
isadora
julia
karmic
katya
linux
linux mint
lisa
lucid
machine vision
maverick
Maverick Meerkat
OpenCV
python
samsung galaxy s
screenshot
script
sources.list
switch
tutorial
Ubuntu
ubuntu 12.04
update
usb
wifi
windows
wine
CategoriesDisclaimerAny information on this site is for informational purposes only, I take no responsibility for the accuracy, reliability, etc to it.
Any information you use, you are using at your own risk. I am in no way liable for any loss, damage of data, hardware or anything else in connection with the use of this website.
![]() This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. |
||||
Copyright © 2021 Alex Sleat - All Rights Reserved This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More Privacy & Cookies Policy Privacy OverviewThis website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information. Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website. |