Contents
Are square brackets allowed in filenames?
File names can contain any of the following characters: A-Z, a-z, 0-9, underscore, hyphen, space, period, parenthesis, curly braces, square brackets, tilde, exclamation point, comma, semicolon, apostrophe, at sign, number sign, dollar sign, percent sign, plus sign, and equal sign.
What symbols are not allowed in filenames?
Do not use any of these common illegal characters/symbols:
- # pound. % percent. & ampersand. { left curly bracket. } right curly bracket.
- < left angle bracket. > right angle bracket. * asterisk. ? question mark.
- $ dollar sign. ! exclamation point. ‘ single quotes. ” double quotes.
- + plus sign. ` backtick. | pipe. = equal sign.
How do I rename a lot of files?
Quick tip: You can also use the Ctrl + A keyboard shortcut to select all files. You can press and hold the Ctrl key and then click each file to rename. Or you can choose the first file, press and hold the Shift key, and then click the last file to select a group. Click the Rename button from the “Home” tab.
Which wild card pattern can be used to match any string of zero or more characters?
Examples of wildcard character pattern matching in expressions
| C haracter(s) | Use to match |
|---|---|
| ? or _ (underscore) | Any single character |
| * or % | Zero or more characters |
| # | Any single digit (0 — 9) |
| [charlist] | Any single character in charlist |
How to create a tar archive in Solaris?
On Solaris, you can use the option -I to read the filenames that you would normally state on the command line from a file. In contrast to the command line, this can create tar archives with hundreds of thousands of files (just did that). So the example would read tar -cvf allfiles.tar -I mylist.txt
How to treat file names with square brackets?
Treat file name having Square Brackets as normal files and you need not take extra care of it. They are very common and don’t require anything extra. Just do what you would have done with a normal file. Having an Equal-to sign do not change anything, you can use it as normal file. Backslash tells shell to ignore the next character.
Is there a way to read file names from tar?
Some versions of tar, for example, the default versions on HP-UX (I tested 11.11 and 11.31), do not include a command line option to specify a file list, so a decent work-around is to do this: On Solaris, you can use the option -I to read the filenames that you would normally state on the command line from a file.
Is there a command line option for tar?
Assuming GNU tar (as this is Linux), the -T or –files-from option is what you want. Some versions of tar, for example, the default versions on HP-UX (I tested 11.11 and 11.31), do not include a command line option to specify a file list, so a decent work-around is to do this: