Simple Computational tricks

Wednesday, June 11, 2014

Reduce the size of an image.

identify name1.file name2.file  #.... (This will give the details of files.)
convert in.file -resize n out.file # (converts infile to outfile of size n x n+dn )

Posted by Ram Lal Awasthi at 5:17 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, January 31, 2014

Reverse the order of rows

sed -n '1!G;h;$p' file1 > file2
Posted by Ram Lal Awasthi at 12:45 AM 3 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Copying n1 and n2 columns from data file 'file1' and writing in to a newly created file 'file2'

  

 awk '{print $n1  "\t"   $n2}' file1 > file2
Posted by Ram Lal Awasthi at 12:30 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  July (1)
  • ►  2018 (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2016 (5)
    • ►  December (1)
    • ►  July (1)
    • ►  June (1)
    • ►  February (2)
  • ►  2015 (5)
    • ►  February (5)
  • ▼  2014 (3)
    • ▼  June (1)
      • Reduce the size of an image.
    • ►  January (2)
      • Reverse the order of rows
      • Copying n1 and n2 columns from data file 'file1' a...
Awesome Inc. theme. Powered by Blogger.