Bash

Creating directories

Introduction#

Manipulating directories from the command line

Move all files not already in a directory into a self named directory

ll | grep ^- | awk -F”.” ‘{print $2 ”.” $3}’ | awk -F”:” ‘{print $2}’ | awk ’{$1=""; print $0}’ | cut -c2- | awk -F”.” ‘{print “mkdir ""$1"";mv ""$1”.”$2"" ""$1"""}’ > tmp;source tmp


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow