Skip to content

Journey of Epsilon

  • Home
  • Log In

Monthly Archives: May 2013

display specific lines in a file

sed -n “20,40p” filename will display lines from 20 to 40 in the file.

Posted byepsilonMay 29, 2013January 26, 2021Posted inUncategorized

copy while preserving timestamps

Sometimes, it is useful to copy files while preserving its timestamps. cp -a source dest scp -p source dest To cp without replacement, we can use rsync -au source/ dest/

Posted byepsilonMay 22, 2013January 26, 2021Posted inlinux

replace a string in files, reload files in emacs, change files names in batch,

1) To replace a string oldstring to newstring in some files, do sed -i ‘s/oldstring/newstring/g’ files 2) to reload files in email, just do ctrl c + ctrl v 3) to rename files in batch, do rename ‘s/oldstring/newstring/’ files  

Posted byepsilonMay 11, 2013January 26, 2021Posted inlinux

Recent Posts

  • Simple steps to create a static website
  • Migrate a WordPress Website from AWS to OCI
  • Graphic Design
  • argparse const vs default
  • avoid googlesheets to increase the dates

Recent Comments

    Archives

    • September 2025
    • September 2023
    • February 2023
    • March 2022
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • March 2021
    • January 2021
    • November 2020
    • October 2020
    • July 2014
    • January 2014
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • December 2012
    • November 2012

    Categories

    • general
    • latex
    • linux
    • Machine Leanring
    • math
    • numerical
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Journey of Epsilon, Proudly powered by WordPress.