{"id":65,"date":"2017-11-17T12:29:00","date_gmt":"2017-11-17T12:29:00","guid":{"rendered":"http:\/\/aldarias.es\/wordpress\/?p=65"},"modified":"2017-11-17T12:29:00","modified_gmt":"2017-11-17T12:29:00","slug":"script-en-bash-para-unir-varios-ficheros-pdf-en-uno-solo","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/?p=65","title":{"rendered":"Script en bash para unir varios ficheros pdf en uno solo"},"content":{"rendered":"<p>El siguiente script en bash une los ficheros: 0.pdf 1.pdf 2.pdf &#8230; 15.pdf en otro llamado todo.pdf<\/p>\n<p>gedit pdfjoin.sh <br \/>====================inicio fichero<br \/>s=\u00bb\u00bb<\/p>\n<p>for i in $(ls *.pdf);do<br \/>&nbsp;&nbsp; s=${s}\u00bb \u00ab${i}<br \/>done <\/p>\n<p>echo \u00abpdftk ${s} cat output todo.pdf\u00bb<br \/>pdftk ${s} cat output todo.pdf<br \/>==================fin fichero<\/p>\n<p>Se lanzaria desde la terminal con:<br \/>sh pdfjoin.sh<\/p>\n","protected":false},"excerpt":{"rendered":"<p>El siguiente script en bash une los ficheros: 0.pdf 1.pdf 2.pdf &#8230; 15.pdf en otro llamado todo.pdf gedit pdfjoin.sh ====================inicio ficheros=\u00bb\u00bb for i in $(ls *.pdf);do&nbsp;&nbsp; s=${s}\u00bb \u00ab${i}done echo \u00abpdftk ${s} cat output todo.pdf\u00bbpdftk ${s} cat output todo.pdf==================fin fichero Se &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/?p=65\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[78],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-pdf-pdftk-bash"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":0,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}