Skip to content

Instantly share code, notes, and snippets.

@AlexCallejas
Created February 27, 2018 05:14
Show Gist options
  • Save AlexCallejas/d1a77c34054ffa638dccaab74e12abd1 to your computer and use it in GitHub Desktop.
Save AlexCallejas/d1a77c34054ffa638dccaab74e12abd1 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(ls); do date1=$(echo "$i" | awk -F'[A-Z]' '{ print $1 }' | awk -F'2017' '{ print $2 }'); date2=$(echo $(echo "$i" | awk -F'[A-Z]' '{ print $1 }' | awk -F'2017' '{ print $2 }')+1 | bc); echo "$i : $date1 : $date2 : $(echo "$i" | sed s/$date1/$date2/)"; done
@AlexCallejas
Copy link
Author

Mi solución al #SysArmyMx Challenge:
http://www.rootzilopochtli.com/2018/02/sysarmymx-challenge/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment