Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I need to create a pattern file with no return or end of file characters for use with dt. I have seen it created before, I just don't remember what I saw 2 years ago.
Ideally, the file would be only the characters "0123456abcdefgh"
I first tried doing "echo 01234567abcdefgh > hex.pat" but I still ended up with something at the end.
I tried using dd to cut the file down by size, expecting that the end character would be cut off, but that didn't work. "dd if=hex.pat of=hex2.pat bs=1b"
So, I really just need a way to complete either of these successfully: create the pattern file without the invisible characters, or cut the invisible characters from the file.
If I recall correctly, the first way I saw that the file was the right size was when I did "cat hex.pat" the lack of a return character made the prompt get created after the hex pattern was put onscreen, rather than jumping to a new line. I don't know of another way to tell without looking at my dt output file.