MyLab2 BLOG

To be, or not to be, that is the question

Home Archive About

sed - Linux

2024年10月10日 Guestbook

Remove first 5000 lines from a big file

1
sed -i 1,5000d /var/log/pacemaker/pacemake.log

Replace , with new line

1
sed -i 's/,/\n/g' filename

Contents

  1. Remove first 5000 lines from a big file
  2. Replace , with new line
  • Linux
Share:
older
Oracle - GG
newer
ghostscript - Linux

Recent

  • Network Mapper (namp)
  • nmap
  • rpm for Linux
  • Apache Tomcat 10.1.48 Installation
  • ITM Agent Commands

Tag Cloud

AIX APC Backup Cybersecurity DCSSA Docker ELK GPFS HMC HPE Hexo ITM Juniper Linux NOI Oracle Redmine Storage TWS VIOS VMware VTL WAS Wiki Windows tomcat

Archive

  • 2025年39
  • 2024年51

Tags

  • AIX13
  • APC1
  • Backup1
  • Cybersecurity1
  • DCSSA2
  • Docker2
  • ELK1
  • GPFS1
  • HMC1
  • HPE5
  • Hexo1
  • ITM1
  • Juniper1
  • Linux27
  • NOI1
  • Oracle3
  • Redmine1
  • Storage6
  • TWS1
  • VIOS3
  • VMware4
  • VTL1
  • WAS1
  • Wiki1
  • Windows12
  • tomcat1

Site Map | Subscribe to this site | Contact the blogger

,

Copyright © 2026 CHENG, Man. Theme by BlueLake. Powered by Hexo.