Skip to content

A Commonplace Blog

  • Health and fitness
    • Food
      • Slow Carb Diet
    • Exercise
      • Yoga
      • Calisthenics
      • Running
  • Linux
  • Motorcycles
    • 1982 GS750EZ
  • Our House
  • Trading and Investing

Tag: rename

How to Rename Similar Files at the Command Prompt Using Sed

Posted on May 4, 2019 by Russell Stinnett

Using a simple “script” at the command line, you can rename a bunch of similar filenames with ease. Say you’ve got something like: foo-001, foo-002 and foo-003, but you want them to be bar-001, bar-002 and bar-003. The script will look like : $ for i in `ls -1 foo*`; do mv $i `echo $i…

CategoriesLinux, Uncategorized

Recent Posts

  • Becoming a Novice Swing Trader
  • Building a new VPS using Ubuntu and Docker
  • We just filled our 3rd 15 yard dumpster
  • Options are hard
  • Wild Swings in the Market

Archives

  • December 2022
  • June 2022
  • April 2022
  • January 2022
  • May 2020
  • November 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • June 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • October 2017
  • September 2017
  • February 2017
  • December 2016
  • November 2016

Categories

  • 1982 GS750EZ
  • 3D Printing
  • cryptocurrency
  • Exercise
  • Food
  • Health and fitness
  • Life
  • Linux
  • Motorcycles
  • Options
  • Our House
  • Projects
  • Running
  • Slow Carb Diet
  • Trading and Investing
  • Uncategorized
  • Vegan

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress