Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print( '-depsc', 'filename.eps');
- -%%CreationDate: 06/29/2011 17:52:57
- +%%CreationDate: 06/30/2011 19:18:03
- # sed
- sed -i file.eps '/^%%CreationDate: /d'
- # grep
- grep -v '^%%CreationDate: ' file.eps > tmp && mv tmp file.eps
- # perl
- perl -i -ne 'print if not /^%%CreationDate: /' file.eps
- %# construct command, arguments and input filename (with quotes to escape spaces)
- cmd = ['"' fullfile(matlabroot, 'sysperlwin32binperl.exe') '"'];
- args = ' -i.bak -ne "print if not /^%%CreationDate: /" ';
- fname = ['"' fullfile(pwd,'file.eps') '"'];
- %# execute command
- system([cmd args fname])
Add Comment
Please, Sign In to add comment