sm

Tagged "Shell"

  1. in Articles
    Copy the last git commit hash on macOS
    A one liner to copy the last commit hash to the clipboard on a Mac
  2. in Articles
    Search all files for two strings
    A terminal command to search for all the files in the current directory that contain two independent strings.
  3. in Articles
    Add text to the beginning of every file
    Using a shell script to add a line to every file with a given extension