Its easy to create many file quickly with touch command
>touch file{1..100}.txtThe touch command is used to create file or change last access timestamp of the existing file to current time of the day.In the above example 100 files with .txt will be created in current directory with 0 bytes.You can change the value of 100 to any number you like. Another variations
>touch {1.txt,2.txt,3.txt}It will create 3 files as specified
>touch {A..Z}.txtIt will create files with name as alphabets from A to Z
>touch {A..Z}_{1..10}.txtIt will create files with name as alphabets from A to Z suffix with 1 to 10
Comments
Post a Comment