<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2542274500600605050</id><updated>2011-07-30T08:34:11.699-07:00</updated><category term='shell file'/><category term='postscript'/><category term='bibtex'/><category term='latex'/><title type='text'>Unix/Linux tricks</title><subtitle type='html'>I would like to use ths blog to share the unix and latex tricks I use all the time 
. &lt;br&gt;
Please feel free to share yours or point out improvements</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-8978659358123207440</id><published>2010-06-28T07:08:00.000-07:00</published><updated>2010-06-28T07:12:35.830-07:00</updated><title type='text'>Creating Aliases to work on the most recent file</title><content type='html'>Often while compiling latex files you need to access the most recent .tex, .ps or .pdf file. Sometimes if those file names are long it is often annoying to write them everytime. Here is a set of commands which will work on the last edited/touched file of the specified type.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias latex. 'latex `ls -t *.tex | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias emacs. 'emacs `ls -t *.tex | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias pdf. 'acroread `ls -t *.pdf | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias acroread. 'acroread `ls -t *.pdf | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias ps2pdf. 'ps2pdf `ls -t *.ps | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias lpr.. 'lpr `ls -t *.ps | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias gv. 'gv `ls -t *.ps | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias gvl. 'gv  --orientation=landscape  `ls -t *.ps | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;alias lpr. 'lpr `ls -t *.ps | head -1` &amp;amp;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;alias lpdf. 'lpdf `ls -t *.pdf | head -1` &amp;amp;'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-8978659358123207440?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/8978659358123207440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=8978659358123207440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8978659358123207440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8978659358123207440'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2010/06/creating-aliases-to-work-on-last-file.html' title='Creating Aliases to work on the most recent file'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-5266651175426243805</id><published>2010-06-28T07:06:00.000-07:00</published><updated>2010-06-28T07:07:03.526-07:00</updated><title type='text'>Combine several pdf files using ghostview</title><content type='html'>&lt;span style="font-family: courier new;"&gt;gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=all.pdf -dBATCH a.pdf b.pdf c.pdf&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-5266651175426243805?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/5266651175426243805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=5266651175426243805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/5266651175426243805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/5266651175426243805'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2010/06/combine-several-pdf-files-using.html' title='Combine several pdf files using ghostview'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-431519372389015565</id><published>2010-06-28T07:02:00.000-07:00</published><updated>2010-06-28T07:05:29.367-07:00</updated><title type='text'>Opening display configuration from commandline</title><content type='html'>&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: arial;"&gt;Often in a dual head one of the screens is stuck. You can open the display configuration using&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;sudo /usr/bin/system-config-display&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and then when nvidia refreshes ... just cancel the configuration. You will get you screens back without having to Ctrl-Alt-Backspace&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-431519372389015565?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/431519372389015565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=431519372389015565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/431519372389015565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/431519372389015565'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2010/06/opening-display-configuration-from.html' title='Opening display configuration from commandline'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-8482747837264035031</id><published>2007-08-07T10:54:00.001-07:00</published><updated>2007-08-07T10:55:50.237-07:00</updated><title type='text'>Using grep with find</title><content type='html'>This is how you can use find to first restrict to all .r files and then use grep on them&lt;br /&gt;&lt;div id="rcode"&gt;&lt;br /&gt;find . -name "*.r" -exec grep "rho" '{}' \; -print&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-8482747837264035031?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/8482747837264035031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=8482747837264035031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8482747837264035031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8482747837264035031'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/08/using-grep-with-find_07.html' title='Using grep with find'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-7632288909221518630</id><published>2007-08-07T10:54:00.000-07:00</published><updated>2007-08-07T10:55:29.664-07:00</updated><title type='text'>Using grep with find</title><content type='html'>This is how you can use find to first restrict to all .r files and then use grep on them&lt;br /&gt;&lt;br /&gt;&lt;div id="rcode"&gt;&lt;br /&gt;find . -name "*.r" -exec grep "rho" '{}' \; -print&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-7632288909221518630?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/7632288909221518630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=7632288909221518630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7632288909221518630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7632288909221518630'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/08/using-grep-with-find.html' title='Using grep with find'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-7659400521451294344</id><published>2007-06-08T08:02:00.000-07:00</published><updated>2007-06-08T08:07:11.270-07:00</updated><title type='text'>Attach files to thunderbird directly from commandline</title><content type='html'>Install the script ( e.g attach.sh )&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Monaco;"&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;#&lt;br /&gt;# Script created by ASID&lt;br /&gt;# Modified by sura&lt;br /&gt;# Attach files to thunderbird&lt;br /&gt;&lt;br /&gt;temp=""&lt;br /&gt;count=0&lt;br /&gt;mydir=`pwd`&lt;br /&gt;for i in $*&lt;br /&gt;do&lt;br /&gt;  count=$(( $count + 1 ))&lt;br /&gt;  if [ $count -eq $# ]&lt;br /&gt;  then&lt;br /&gt;     temp=${temp}file://${mydir}/${i}&lt;br /&gt;  else&lt;br /&gt;     temp=${temp}file://${mydir}/${i},&lt;br /&gt;  fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;echo $temp &lt;br /&gt;&lt;br /&gt;if thunderbird -remote "ping()" 2&gt; /dev/null ;&lt;br /&gt;then&lt;br /&gt;  thunderbird -remote "xfeDoCommand(composeMessage,attachment='$temp')"&lt;br /&gt;else&lt;br /&gt;  thunderbird --compose "attachment='$temp'"&lt;br /&gt;fi&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then just issue the command&lt;br /&gt;&lt;span style="font-family:Monaco;"&gt;&lt;br /&gt;bash attachs.sh filenames&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-7659400521451294344?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/7659400521451294344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=7659400521451294344' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7659400521451294344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7659400521451294344'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/06/attach-files-to-thunderbird-directly.html' title='Attach files to thunderbird directly from commandline'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-260428202469548064</id><published>2007-04-19T11:16:00.000-07:00</published><updated>2007-04-19T11:30:43.681-07:00</updated><title type='text'>Setting new keyboard macro in emacs</title><content type='html'>The process is described &lt;a href="http://fsugtsr.org/magazine/issue2/elisp.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is the final entry in your init.el file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Monaco;"&gt;&lt;br /&gt;(fset 'newslide&lt;br /&gt;[?\C-7 ?\C-7 ?% return ?% ?% ?% ?% ?% ?% ?% ?  ?  ?N ?E ?W ?\S-  ?S ?L ?I ?D ?E return ?\C-7 ?\C-7 ?% return return ?\\ ?b ?e ?s ?{ ?  ?  ?} return return ?\\ ?e ?s return return])&lt;br /&gt;(global-set-key [f8] 'newslide)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now just press F8 and you will get an entry like &lt;br /&gt;&lt;span style="font-family:Monaco;"&gt;&lt;br /&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;%%%%%%%  NEW SLIDE&lt;br /&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;&lt;br /&gt;\bes{  }&lt;br /&gt;&lt;br /&gt;\es&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;which I used as demarcation while preparing latex slides&lt;br /&gt;&lt;br /&gt;WOW you can type so much using just one key stroke :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-260428202469548064?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/260428202469548064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=260428202469548064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/260428202469548064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/260428202469548064'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/setting-new-keyboard-macro-in-emacs.html' title='Setting new keyboard macro in emacs'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-8597229587133832142</id><published>2007-04-18T18:04:00.000-07:00</published><updated>2007-04-18T21:06:09.603-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='bibtex'/><category scheme='http://www.blogger.com/atom/ns#' term='postscript'/><title type='text'>The Latex Bibtex cycle and camera ready postscript ( Shell file)</title><content type='html'>&lt;span style="font-family:monaco,courier new;"&gt;&lt;br /&gt;#! /usr/bin/tcsh -f&lt;br /&gt;set file1 = ${1}&lt;br /&gt;echo  $file1&lt;br /&gt;&lt;br /&gt;set file = $file1:r&lt;br /&gt;latex $file&lt;br /&gt;bibtex $file&lt;br /&gt;latex $file&lt;br /&gt;latex $file&lt;br /&gt;dvips $file -P pdf -G0  -t letter -o&lt;br /&gt;echo done latex bibtex latex latex&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-8597229587133832142?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/8597229587133832142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=8597229587133832142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8597229587133832142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8597229587133832142'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/latex-bibtex-cycle-and-camera-readdy.html' title='The Latex Bibtex cycle and camera ready postscript ( Shell file)'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-4927542555450340342</id><published>2007-04-18T18:00:00.000-07:00</published><updated>2007-04-18T18:02:34.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='shell file'/><category scheme='http://www.blogger.com/atom/ns#' term='postscript'/><title type='text'>Split a postcript file with multiple pages of graphs and generate the code to include them in latex ( Shell file)</title><content type='html'>&lt;span style="font-family:monaco,courier new;"&gt;&lt;br /&gt;set j=1&lt;br /&gt;while ($j &lt;= $total )&lt;br /&gt;    psselect $j $file1 $file-$j.ps&lt;br /&gt;    echo "written   $file-$j.ps"&lt;br /&gt;    echo "\includegraphics{$file-$j.ps}" &gt;&gt; $file.txt&lt;br /&gt;    set j=`expr $j + 1`&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;echo " "&lt;br /&gt;echo " "&lt;br /&gt;&lt;br /&gt;echo " Latex Code produced in $file.txt "&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-4927542555450340342?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/4927542555450340342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=4927542555450340342' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/4927542555450340342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/4927542555450340342'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/split-postcript-file-with-multiple.html' title='Split a postcript file with multiple pages of graphs and generate the code to include them in latex ( Shell file)'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-8486874975930834345</id><published>2007-04-18T17:58:00.000-07:00</published><updated>2007-04-18T18:02:04.826-07:00</updated><title type='text'>Convert all pdf file in adirectory to ps file ( Shell file)</title><content type='html'>&lt;span style="font-family:monaco,courier new;"&gt;&lt;br /&gt;&lt;br /&gt;#! /usr/bin/tcsh -f&lt;br /&gt;foreach file ( *.pdf)&lt;br /&gt; echo $file&lt;br /&gt; pdf2ps $file&lt;br /&gt;end&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-8486874975930834345?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/8486874975930834345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=8486874975930834345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8486874975930834345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/8486874975930834345'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/convert-all-pdf-file-in-adirectory-to.html' title='Convert all pdf file in adirectory to ps file ( Shell file)'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-4614701573343509270</id><published>2007-04-18T17:55:00.000-07:00</published><updated>2007-04-18T17:58:23.740-07:00</updated><title type='text'>Print pdf from command line ( Shell file )</title><content type='html'>&lt;span style="font-family:monaco,courier new;"&gt;&lt;br /&gt;#!/bin/csh&lt;br /&gt;if( $# == 2 ) then&lt;br /&gt;  set printer=$2&lt;br /&gt;else&lt;br /&gt;  set printer=$PRINTER&lt;br /&gt;endif&lt;br /&gt;&lt;br /&gt;if( $1 != "" ) then&lt;br /&gt;  cat ${1} | acroread -toPostScript | lpr -P $printer&lt;br /&gt;  echo ${1} sent to $printer ... OK!&lt;br /&gt;else&lt;br /&gt;  echo PDF Print: No filename defined!&lt;br /&gt;endif&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-4614701573343509270?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/4614701573343509270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=4614701573343509270' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/4614701573343509270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/4614701573343509270'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/print-pdf-from-command-line.html' title='Print pdf from command line ( Shell file )'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-6499718568681649351</id><published>2007-04-18T17:46:00.000-07:00</published><updated>2007-04-18T17:54:58.653-07:00</updated><title type='text'>Interesting aliases</title><content type='html'>&lt;span style="font-family:monaco,courier new;"&gt;&lt;br /&gt;&lt;br /&gt;alias cleanthis '/bin/rm -f *.toc *.bbl *.blg *.pfg *.dvi *.aux *.log *~ #*# *.o .saves* .*~ core trash *.out *.bak'&lt;br /&gt;alias clean  'source ~/script/clean.sh'&lt;br /&gt;alias where 'find * -follow | grep $1'&lt;br /&gt;alias sd 'setenv DISPLAY \!*":0"'&lt;br /&gt;alias . 'exit'&lt;br /&gt;alias pub 'chmod 755'&lt;br /&gt;alias fon 'mv myforward .forward '&lt;br /&gt;alias foff 'mv .forward myforward'&lt;br /&gt;alias lsD 'ls -d */'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alias l. 'l `ls -t *.tex | head -1` &amp;'&lt;br /&gt;alias latex. 'latex `ls -t *.tex | head -1` &amp;'&lt;br /&gt;alias emacs. 'emacs `ls -t *.tex | head -1` &amp;'&lt;br /&gt;alias pdf. 'open `ls -t *.pdf | head -1` &amp;'&lt;br /&gt;alias gv. 'gv `ls -t *.ps | head -1` &amp;'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-6499718568681649351?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/6499718568681649351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=6499718568681649351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/6499718568681649351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/6499718568681649351'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/interesting-aliases.html' title='Interesting aliases'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2542274500600605050.post-7827038717703331432</id><published>2007-04-02T19:20:00.000-07:00</published><updated>2007-04-02T19:35:12.062-07:00</updated><title type='text'>Viewing or editing your recent file with clever aliases</title><content type='html'>You can get away without typing the full name for last file ( ps, pdf, tex) on the command line. Use the following aliases. I use them all the time: especially when I name your file&lt;br /&gt;"04_11_mybestresearch_revision3.tex"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monaco, courier new;" &gt;&lt;br /&gt;alias emacs. 'emacs `ls -t *.tex | head -1` &amp;'&lt;br /&gt;alias pdf. 'open `ls -t *.pdf | head -1` &amp;amp;'&lt;br /&gt;alias gv. 'gv `ls -t *.ps | head -1` &amp;amp;'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2542274500600605050-7827038717703331432?l=xtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtricks.blogspot.com/feeds/7827038717703331432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2542274500600605050&amp;postID=7827038717703331432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7827038717703331432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2542274500600605050/posts/default/7827038717703331432'/><link rel='alternate' type='text/html' href='http://xtricks.blogspot.com/2007/04/viewing-or-editing-your-recent-file.html' title='Viewing or editing your recent file with clever aliases'/><author><name>surajit.ray</name><uri>http://www.blogger.com/profile/08879353921163495179</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
