Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, create files kevinone.txt, kevintwo.txt, kevinthree.txt, kevinfour.txt in short hand way (i.e. without having to specify all file names in full, one by one)
Answer

touch kevin{one,two,three,four}.txt

^^ note the use of {}, called brace expansion


Question
In linux, create files kevinone.txt, kevintwo.txt, kevinthree.txt, kevinfour.txt in short hand way (i.e. without having to specify all file names in full, one by one)
Answer
?

Question
In linux, create files kevinone.txt, kevintwo.txt, kevinthree.txt, kevinfour.txt in short hand way (i.e. without having to specify all file names in full, one by one)
Answer

touch kevin{one,two,three,four}.txt

^^ note the use of {}, called brace expansion

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
ion We have already shown how you can use, for example, the shorthand touch file_{one,two,three}.txt to create multiple files file_one.txt , file_two.txt , and file_three.txt . This is known as <span>brace expansion and occurs before any other kind of modification to the command-line. Tilde expansion The special character ~ is replaced with the full path contained in the HOME environment variable o

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.