Software :: Sed Syntax For Binary Wrapped EPS Files

Oct 8, 2010

I'm having a problem with sed syntax. So far I can sed the HiResBoundingBox to capture the images I want and output to pdf. But now ever so often I get an illustrator file that has hexadecimal values at the start and end of the file. Imagemagick powers through this and still creates the rastorized previews I want but the gs dies using the epstopdf script to output the vector files. If I hand remove the hex on both ends of the file, both functions work fine and the file can still be managed in illustrator but if I resave it the hex comes back. It only happens on a few files plus it seems to serve no purpose as the files work perfectly without it. I cannot get the sed statement to work. I've tried a blue million variations with no luck. Copied some that I found, same result.

Start of bad eps file:
ADOƆ ^@^@^@5O
^@^@^@^@^@^@^@^@^@UO
^@im^K^@yy^@^@%!PS-Adobe-3.1 EPSF-3.0^M

The way I need it to look:
%!PS-Adobe-3.1 EPSF-3.0^M
End of file the same:
%AI9_PrivateDataEnd^M
@ @
just needs to be:
%AI9_PrivateDataEnd^M
Tried
sed -n '/%/,$p' < = blank file
sed -i 's/%/,$!d/g' = same
sed 's/%/,$!d/g' = same
sed 's/%/,$!d' = same

I can't seem to find any proper reference to this.

View 1 Replies


ADVERTISEMENT

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

General :: List/find All Regular Files In All Subdirectories Excluding Binary Files

Oct 5, 2010

I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find

View 4 Replies View Related

Fedora :: Compression Ratio For Text Files / Binary Files

Apr 15, 2011

Fedora provides several compression techniques. E.g tar, tar.gz, zip etc. I want to know which among them provides

1. the best compression ratio for text files

2. the best compression ratio for binary files

3. fastest compression

View 6 Replies View Related

Fedora :: 12 Restored Files From USB Key - Source Files Are All Binary?

Feb 11, 2010

Before installing Fedora on my laptop I backed up my files onto a USB key. I wiped the hard disk and installed Fedora 12. I copied my files back to my home directory - but all the text files are now binary! Any ideas why this would be or how to fix it??---------- Post added at 10:54 AM CST ---------- Previous post was at 10:35 AM CST ----------Hmm it seems that only some files are binary. Looks like some .tgz files are corrupted too.---------- Post added at 11:02 AM CST ---------- Previous post was at 10:54 AM CST ----------Damn - I wonder if the files weren't completely written to the usb key before I removed it. I don't remember their being a safe mount option in Fedora 10 - but I definitely unmounted it before removing it from the laptop.

View 1 Replies View Related

Programming :: See The Contain Of Binary Files?

Aug 4, 2010

i have some files name libbeet.so.3.02 , libpos.so.3.04.I think all is binary files , but i am not able to see the contain of file.is there any script to read the file contain.

View 5 Replies View Related

General :: Remove Files Which Have A Certain Syntax

Jan 23, 2011

I have a couple of files which follow this syntax:

*_yyyy-mm-dd_hhhmmm.*

Example:

*_2010-01-01_00h10m.*
*_2010-01-01_01h10m.*
*_2010-01-01_02h10m.*

[Code].....

and delete the others. or maybe move them to a subdirectory to be safe...

View 2 Replies View Related

General :: Can't Open File/abcd/configFiles/vim/syntax/syntax.vim?

Mar 7, 2011

When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.

Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.

But still i keep getting the same error. I am not too sure where this file is mentioned.

Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.

View 1 Replies View Related

Programming :: Version Info Coded Into ELF Binary / Author And Company Name Into ELF Binary?

Nov 30, 2010

How to coded version info and other information likes author and company name into the ELF binary?

I prefer the put the version info during build step.

View 5 Replies View Related

General :: Compare Binary Files In System?

Mar 29, 2010

I need to compare two binary files and get output in form

for every different byte. So if file1.bin is code...

what is the easiest way to accomplish the goal? Standard tool? Some 3rd party tool?

View 5 Replies View Related

Programming :: Patch Binary Files From Different Library?

Jul 2, 2010

I am currently implementing an upgrade system for silent upgrades in my application. I am stuck. I need the code to patch binary files. But I can't find a good third party library. My code is in C# so I would prefer a C# library, but right now I would even go as far as using a library in another language and bind it into my C# code. But I just can't find a good patch/diff library. I must be missing something. Surely there must be some libraries out there that give us the ability to patch binary files?

View 8 Replies View Related

General :: Command Syntax To Modify Multiple Files

Sep 26, 2009

I have a program I use, rrdtool. I need to modify a ds value on every file at the same time. However, using a wildcard (*) to try this operation of all files does not work and instead only updates one file.

Here is the command syntax:
rrdtool tune <file> --maximum traffic_in:100000000000 && rrdtool tune <file> --maximum traffic_out:100000000000
So, how can I do this on every file in the directory?

View 5 Replies View Related

Software :: Merging Files Together Based On Latex Syntax?

Mar 4, 2010

I have a latex code file which links itself to many other latex files. The syntax is as follows:input{*path of file to be inputed*}The path is relative to the current working directory, so if my file is stored in /home/kevin/mybook.tex and I want to include a file in /home/kevin/latexstuff/copyleft.tex I simply write:input{latexstuff/copyleft.tex}

The latex compiler includes these files just as if they had been copied and pasted into the main latex file at the point specified. My problem is that I have a document which depends on quite a bit of these input commands,ut I am trying to use a latex preprocessor (ratexdb, adds database fields to your latex documentshich does not support input commands, leaving my file only half processed.So I was wondering: is there any easy way to parse through my main file, detect only the input commands, interpret the syntax and include the files specified (where specified)nd produce a second, populated file, which can then be processed by ratexdb?

View 2 Replies View Related

Software :: Vim - Command Input For Creating Syntax Files

Jan 25, 2011

There is a syntactical feature I would like to see in Vim, and so I thought to write myself a syntax file for my needs, but I am having trouble finding the exact type of syntax highlighting I want to incorporate'emulate. Currently in Vim, from the terminal instead of say gvim, when I place my cursor over a parenthesis or brace, the corresponding brace or parenthesis will highlight, or block its character. In my case, instead of a single character they will be full words specified within the syntax file.

I want to do something similar. For example if my document has three words:
Group
Element1
Element2

I want the syntax file to tell Vim that when I have my cursor over the word Element1 or Element2 that Group will become highlighted. In the same, to have the cursor over Group will cause both Element1 and Element2 to highlight. I have looked here but understanding still eludes me: [URL]. I would also be happy with creating some sort of command input, where I type in the group name and the elements highlight. Like a very specific search function that searches for only and all instances that are contained within the group named.

View 4 Replies View Related

General :: Communication Between Shell Script And Binary Files?

Feb 18, 2011

Iam executing a shell script from my code and i need to "establish communication between shell script and my program(i..e.. my script iam executing and code should communicate each other while executing)" in one shot i want to implement IPC`s in shell script..! bye the way iam using system() call to run the shell script.

View 10 Replies View Related

Software :: Minicom And Cutecom Send Binary Files?

May 5, 2011

do you know any serial comm application other than minicom and cutecom that can send binary files?

View 2 Replies View Related

Fedora X86/64bit :: Can't Run (execute) Any Binary Files FC12 / Solve This?

Nov 20, 2009

I have recently installed FC12 64 bit. I have been using Fedora now since I first installed FC9 a few years back.

My main problem is that I am unable to execute any files at all using the ./filename command. I spent last night trying to run the ipod bootloader and all I kept on getting was the message: unable to run binary file. I used the command chmod +x ipodpatcher before attempting to run it, but with no luck. After a while of frustration and a few suggestions online I booted up my Ubuntu OS and the file ran first time. Am I missing a program on FC12? Do I need to install something else?

I feel it may be simple, however I have never experienced this problem before using Fedora. Any suggestions?

View 2 Replies View Related

General :: Directory Contains Utilities Available On System In Form Of Binary Files?

Mar 28, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?..........

View 1 Replies View Related

Ubuntu Installation :: .sig And .bin Files - Terminal Responds Cannot Execute Binary File?

Jun 11, 2011

I have two sets of drivers to install, one for a wireless device I'm trying to enable and the other is an driver set for a newly installed nVidia graphics card. Both drivers are from the manufacturers site.I'm running Ubuntu 10.04 on a Dell Precision 380.In terminal:

chmod a+x rt2870.bin
then:
./rt2870.bin

[code]...

View 3 Replies View Related

General :: Playing Broken Video Files (Binary Split Into 6 Parts)

May 26, 2011

Today encoders are getting smarter. They can compress Blu ray similar quality in 700MB. It seems header of video file contain info about frame rate, audio/video encoder etc. which can't be guessed. In MPEG audio , every part of file is independently playable. If a movie is binary split into 6 parts & I don't have the first part then it is unplayable.

Code:
example
ls
-rwxrwxrwx 1 root root 280M 2010-12-07 20:23 irn2-cd1.mkv
-rwxrwxrwx 1 root root 50M 2011-05-26 13:09 last-50M-cd2
-rwxrwxrwx 1 root root 50M 2011-05-26 13:44 first-50M-cd1
file *
first-50M-cd1: Matroska data
last-50M-cd2: data
irn2-cd1.mkv: Matroska data

View 1 Replies View Related

Debian :: How Does Detect A Wrapped Version Of An Old Password

Jan 18, 2011

When I was changing my password with the "passwd" command in Debian Lenny, after the confirmation, I received the following message: Bad: new password is just a wrapped version of the old one

I know the passwords are not saved in clear text, but hashes. Even further, when a single char changes in the string (the password in this case) the hash is completely different. So, how does linux detect a wrapped version of an old password?

View 2 Replies View Related

Programming :: Run Shell Scripts Wrapped In Python?

Jul 11, 2010

I'm a new programmer (a life-long desire, but at 40 just getting to it) and cutting my teeth with Python. I just found the popen2 module today. I was so excited because I could do this:

Code:

>>> from popen2 import popen3
>>> cmd ="""TEXT="Hello, World!"
... echo $TEXT"""
>>> std_out, std_in, std_err = popen3(cmd)

[code].....

If you want to use another shell, substitute that shell for /bin/bash (e.g., /bin/sh for the shell portability purists out there). It is easy to modify what is returned as well. Don't like the tuple? Then just change it to return or even print stdout if you like.

View 14 Replies View Related

Ubuntu :: Panic Password To Shred Wrapped Passphrase

Feb 8, 2011

I considered making my system run the following if an incorrect password is entered 10 times in a row or a specific dead-password is entered.Code:shred /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase.Because ext4 doesn't journal the contents of the file, only the metadata, the file would be shredded and it would be impossible to recover the encrypted home folder even with the password.Is there a simple way I could make GDM check this or would I have to patch and recompile GDM for something like this to work?

View 1 Replies View Related

Ubuntu :: Display Wrapped Bottom Part Seem To Be Stuck

Feb 14, 2011

I just added a nice little HDTV as a second display on my laptop, it worked fine but I found that the text was a bit hard to read so I decided to change it, got another one yesterday, just plugged it in and everything was perfect. Today I came back from work, plugged the laptop in the monitor, booted the machine, and got a wrapped display, the bottom part (about 1/4 of teh display) seem to be stuck with the content that was visible when I opened my session, and the top part is shifted up, making it totally useless.I took a picture of the display, you can see it here [URL]... I will try to see what happen if I put back the other display, but I really want to get working with the new one.

View 1 Replies View Related

Fedora :: Mutt: Weird Plus Sign At The Beginning Of Wrapped Lines?

Nov 12, 2009

I've only seen this occur in cases where I'm viewing a GPG-signed message and a line wraps. A plus sign appears at the beginning of the next line. Is this something I can get rid of?

View 10 Replies View Related

General :: SUSE 10 Syslog-ng Syntax - Bash: Syntax Error Near Unexpected Token "("

Apr 20, 2011

I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:

filter f_local4debug { level(debug) and facility(local4); };

When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.

View 1 Replies View Related

SUSE :: Windows Vista Has Been Wrapped Up In The Partitioning System - Bound And Gagged

May 24, 2010

I have an HP Compaq nx6235 Notebook, which was happily running Windows Vista Home Premium, until I finally got around to loading Linux openSUSE 11.1 from a DVD issued with a magazine last year. I now have a problem, because my Windows Vista has been wrapped up in the Linux partitioning system. I know it is located at dev/sda1 and that it is an HPFS/NTFS filetype, create a dual boot drive on my notebook, so that I can happily play with both systems. I am newbie, so the instructions should be as clear and simple as possible.

View 9 Replies View Related

Ubuntu :: Text Editor To Preserve Indentations On Wrapped Text?

Mar 21, 2010

I'm looking for a light-weight text editor for general-purpose composition that can preserve indentations on wrapped lines.

View 3 Replies View Related

Ubuntu :: Can't Run This Binary / Wh Is So?

Apr 29, 2010

I'm going through a tutorial here to help me know how to wander around my system in the terminal and just understand better on a general level.

I'm trying to simply figure out how to compile and run some software from source. I get to my directory where the then installed binary sits. I understand I'm supposed to enter in the command:

Quote:

./units

where 'units' is the name of my binary. But I then get the output:

Quote:

units: can't find units file '/usr/local/share/units.dat'

...what? Why does it refer to that directory that's WAY out there? It seems like it's trying to outguess me on something? I don't know. Anyone out there that does? I'd appreciate an explanation, and help to know what to do to run this binary.

View 1 Replies View Related

Debian :: How To Set VIM (Highlight Syntax And So On)

Sep 24, 2010

I cannot find how to set VIM so that it higlight syntax (for exapmle bash scripts). I installed VIM package by using aptitude, but I dont have file .vimrc in my home directory. I found out that settings have to be written in this file. I can use command in VIM :"syntax on" but VIM shows syntax terrible. I think that is cause by some color setting.

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved