Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

hp-ux

How can I edit a large file in place?

August 11, 2022 by Magenaut

I have a few files sized > 1 GB each. I need to remove last few bytes from the files. How can I do it? I prefer to edit file in place to save disk space.

Categories Q&A, Unix & Linux Tags editors, files, hp-ux, large-files Leave a comment

Show lines matching a pattern and the 4 lines before each

August 8, 2022 by Magenaut

For example, from this file:

Categories Q&A, Unix & Linux Tags awk, command-line, grep, hp-ux, sed Leave a comment

Is there a way to sum up the size of files listed?

August 7, 2022 by Magenaut

This is the command I am using to list some files:

Categories Q&A, Unix & Linux Tags hp-ux, ksh, shell-script Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress