How to create/delete multiple files
[davsingh@noisecover-dr test]$ touch test{1,2,3} {a,b,c}
[davsingh@noisecover-dr test]$ ls
a b c test1 test2 test3
[davsingh@noisecover-dr test]$ rm -rf test*
[davsingh@noisecover-dr test]$ rm -rf {a,b,c}
[davsingh@noisecover-dr test]$ touch test{1,2,3}{a,b,c}
[davsingh@noisecover-dr test]$ ls
test1a test1b test1c test2a test2b test2c test3a test3b test3c
[davsingh@noisecover-dr test]$ ls
a b c test1 test2 test3
[davsingh@noisecover-dr test]$ rm -rf test*
[davsingh@noisecover-dr test]$ rm -rf {a,b,c}
[davsingh@noisecover-dr test]$ touch test{1,2,3}{a,b,c}
[davsingh@noisecover-dr test]$ ls
test1a test1b test1c test2a test2b test2c test3a test3b test3c
Comments
Post a Comment