• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for command line

command line

Git Case Sensitive Rename

Last updated on December 17, 2014 by Sal Ferrarello

One can rename a file with git mv however, if you try to use this technique to change the case of the filename it will fail and you’ll get fatal: destination exists. I prefer to keep all my filenames lowercase, so getting this to work is important to me. If I modified the filename case […]

Filed Under: Computing Tagged With: command line, Git

Replace Across Multiple Files

Last updated on May 18, 2014 by Sal Ferrarello

Replace All Instances of wolf with dog From the command line run ack ‘wolf’ -l –print0 | xargs -0 sed -i ” ‘s/wolf/dog/g’

Filed Under: Dev Tips Tagged With: command line

Command Line List Files in Tree View

Last updated on March 24, 2014 by Sal Ferrarello

List all subfolders with formatted output ls -R | grep “:$” | sed -e ‘s/:$//’ -e ‘s/[^-][^\/]*\//–/g’ -e ‘s/^/ /’ -e ‘s/-/|/’ From: http://reviews.cnet.com/8301-13727_7-10402034-263.html

Filed Under: Computing Tagged With: command line

  • «Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in