Skip to content

Instantly share code, notes, and snippets.

View jcarolinares's full-sized avatar

Julián Caro Linares jcarolinares

View GitHub Profile
@jcarolinares
jcarolinares / rename_files.sh
Last active June 13, 2019 10:35
Massive renaming bash script
#!/bin/bash
#Massive renaming of files call it: ./rename.sh base_name
N=1
name=$1
for file in *.jpg; do
full_name=$name"_$N.jpg"
mv "$file" $full_name
let N=N+1
done
@jcarolinares
jcarolinares / useful_commands_to_use_in_shell.md
Last active February 3, 2023 02:23
This is a simple guide for non-pro bash users to do random but annoying tasks in just seconds

Useful commands to use in Shell or others:

This is a simple guide for non-pro bash users to do random but annoying tasks in just seconds

Your boss will be happy and you'll be less stressed ;)

Files

Search a file name using a string:

@jcarolinares
jcarolinares / oreilly-free-ebooks.py
Last active January 12, 2017 13:45 — forked from David-Estevez/oreilly-free-ebooks.py
Extracts all links from O'Reilly website to automate free eBook download
##################################################################################
# O'Reilly Free Books link extractor
##################################################################################
#
# Extracts all links from O'Reilly website to automate free eBook download.
# Looks for existing files in the current directory to avoid downloading the same
# book twice.
#
##################################################################################
#