rigadicomando.org

Whatever you can cat

Random Quote

Being and non-being produce each other.
Difficult and easy complement each other.
Long and short define each other.
High and low oppose each other.
Fore and aft follow each other.

• Lao Tzu

Secondary links

  • About
  • Contacts
  • Disclaimer

Home Blogs admin's blog

Split big files for editing

Submitted by admin on Tue, 2008-01-15 14:13.
  • bash
  • emacs

If you need to edit a big file, for example a mysql full dump for recover a single database, and your editor, for example emacs, say
something like "Maximum buffer size exceeded" you can split it in many smaller files.

~$ split -b 100m ORIGINAL_BIG_FILE OUTPUT_FILE_NAME

Output files will be:

OUTPUT_FILE_NAMEaa
OUTPUT_FILE_NAMEab
OUTPUT_FILE_NAMEac

and on ... every one 100MB weight.

Then you can edit and just keep your DB for restore.
If the DB would be between two split files (a part in a file and a part in another) simply use cat to concatenate it out like that:

~$ cat OUTPUT_FILE_NAMEab OUTPUT_FILE_NAMEac > YOUR_DB_OK

  • admin's blog
  • Login to post comments

LinkShare  Referral  Prg

CheapOair.com

tags in Arguments

administrivia bash Debian GNU/Linux OS emacs howto perl scripts web
more tags

Navigation

  • Feedback
  • News aggregator

ICT users' rights

  • FSF and Stephen Fry celebrate the GNU Project 25th anniversary
  • Spring 2008 Bulletin available online
  • Submit your nominations for the 2008 Free Software Awards
  • FSF demonstrates iPhone's incompatibility with free software and GPLv3
  • Atheros releases free software wireless driver; no binary blobs
more

High Scalability Architecture

  • Latency is Everywhere and it Costs You Sales - How to Crush it
  • MapReduce framework Disco
  • What CDN would you recommend?
  • SMACKDOWN :: Who are the Open Source Content Management System (CMS) market leaders in 2008?
  • 37signals Architecture
more

Debian Security

  • DSA-1634 wordnet
  • DSA-1633 slash
  • DSA-1632 tiff
  • DSA-1631 libxml2
  • DSA-1630 linux-2.6
more

Drupal Security

  • SA-2008-048 - CCK - Cross site scripting
  • SA-2008-047 - Drupal core - Multiple vulnerabilities
  • SA-2008-046 - Drupal core - Session fixation
  • SA-2008-045 - OpenID - Multiple vulnerabilities
  • SA-2008-044 - Drupal core - Multiple vulnerabilities
more

EFF

  • FBI Withdraws Unconstitutional National Security Letter After ACLU and EFF Challenge
  • EFF and Sheppard Mullin Defend Wikipedia in Defamation Case
  • Congress Must Investigate Electronic Searches at U.S. Borders
  • Betrayed MSN Music Customers Deserve More from Microsoft
  • EFF Report: FBI Slowed Terror Investigation with Improper NSL Request
more

Invent Geek

  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • thermaltake sponsors inventgeek
  • The Thermaltake MiniFridge Case Mod
  • Inventgeek gets a facelift and a butt tuck
more

 Privacy | Disclaimer | Drupal | Creative Commons

All content on this site is ditributed under Creative Commons License, each individual author is responsible for its own posts.

RoopleTheme