![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binary txt file received when i use uuencode to send txt file as attachment | ash22 | UNIX for Dummies Questions & Answers | 2 | 04-24-2008 09:03 PM |
| compiled binary file gives "cannot execute binary file" | scgupta | SUN Solaris | 0 | 07-13-2006 02:59 AM |
| binary file | markms | UNIX for Dummies Questions & Answers | 1 | 04-07-2006 10:40 AM |
| binary file | ramneek | UNIX for Dummies Questions & Answers | 1 | 09-13-2005 06:02 PM |
| Binary File Transfer | DPAI | High Level Programming | 2 | 03-04-2002 03:12 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
dd - binary file
I have a task that says: make a file (called binaryfile ) that contains
4 bytes of NULL data 6 bytes of random data 8 bytes of 1 10 bytes of 5 and 12 bytes of 9. For the first 2, I can used : dd if=/dev/null of=binaryfile bs=8 count =4 and dd if=/dev/urandom of=binaryfile bs=8 count=6 seek=4, but how can I do the rest ??? I know, bs will remain 8 (8 bits) and seek will increase after each append to my file. My question is, how to tell dd what bits to copy (other than 0 or random). |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|