Created
February 27, 2018 04:30
-
-
Save AlexCallejas/76090a832c913c47c3f88f842e47dcad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(ls -1 workdir/); do echo $i| awk -F'.' '{ parte1=substr($1,1,17); parte2=substr($1,18,1); parte3=substr($1,19,18); parte2++ ;print "cp workdir/"$0,"newfiles/"parte1 parte2 parte3"."$2"."$3 }';done | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script en bash, ganador del segundo lugar del #SysArmyMx Challenge:
http://www.rootzilopochtli.com/2018/02/sysarmymx-challenge/