Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 11774  / 1 Year ago, wed, may 24, 2023, 1:58:52

How can I copy a file, starting at $N bytes and onward?



I can use curl's -r option like this: $ curl -r 41663- http://server.com/file.ext to download from byte 41663 and onward, but how can I do this with a local file? I could use split, and make each file the size of the offset I want, but that would just complicate thigns.



Is there a simple way to do this?


More From » bash

 Answers
3

You can use the dd command. Sorry for the very short answer. You'll have to look it up in the manual. man dd will explain how it works.


[#43726] Wednesday, May 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
smelrop questions
Mon, Mar 13, 23, 07:22, 1 Year ago
Sun, Feb 5, 23, 13:02, 1 Year ago
Tue, Aug 31, 21, 00:50, 3 Years ago
Sat, Dec 18, 21, 15:18, 2 Years ago
;