Thursday, 1 March 2012

Symlink generator from a list directory

Installing a virtual machine from a server, This command can be useful to regenerate the symlink statements from a ls output
ls -l | awk '{print "ln -s " $11 " " $9}' | sed 's/\//\/dist\/uk\//4'