Create a gist now

Instantly share code, notes, and snippets.

Embed
#!/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
@darkaxl

This comment has been minimized.

Show comment
Hide comment
@darkaxl

darkaxl Feb 27, 2018

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

Owner

darkaxl commented Feb 27, 2018

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