2014年8月7日 星期四

[move file] Move file exclude some file or folder



mv !(child1|child2) child1

Before

|parent

|–child1

|–child2

|–grandChild1

|–grandChild2

|–grandChild3

|–grandChild4

|–grandChild5

|–grandChild6

After

|parent

|–child1

| |–grandChild1

| |–grandChild2

| |–grandChild3

| |–grandChild4

| |–grandChild5

| |–grandChild6

|–child2




Reference:



  1. How to use ‘mv’ command to move files except those in a specific directory?


Related Posts:

0 意見:

張貼留言