- find tb{2,5,6,10}.1 - Explanation for output.
- ls tb?.1 Explanation for output.
- what if i want to create directories of the kind temp1,temp2,temp3, without specifying all the three files. Is it possible through some regular expression?
Create a sub-directory in a directory (directory- is not created) -- Iis this possible?
I wanted to find some pattern of files "find tb{2,5,6,10}.1" and then copy the result into someother directory which i can create here in this command only.
|
|
|
||||||||||||||||||
|
migrated from stackoverflow.com Aug 9 at 20:45 |
|
closed as not a real question by splattne Aug 9 at 20:45 |
|
| It's difficult to tell what is being asked here. This question is ambiguous, vague, or rhetorical and cannot be reasonably answered in its current form. |
|
|
tb{x,z}.z matches tbx.z and tby.z Read about the filename pattern matching syntax link text
creates parent directories if missing, use man to find options to commands
would give you the information. Read the man page for find to dicover how to apply a command to the files you find. |
||
|
|
|
|
I would just say you install a linux or virtualize one, or just read the manpages |
||
|
|
|
|
Advanced Bash-Scripting Guide, in general and Parts 4 & 5 specifically for this. |
||
|
|
|
|
This looks like homework. By the way it's completely trivial, just try it by yourself on the closest Linux or Mac. hint : why won't we help you with your homework? Because if you plan to become someday a programmer or computer engineer, we'd rather have capable people as colleagues, i. e. people who did their homework by themselves :) |
||||||||||||||
|
