5
votes
Put a specific file in every Unix user's home directory when they're created and added to a particular group
You can do this by creating specific script to add new users. As Solaris offer a lot of options to useradd I will provide just example:
#!/bin/bash
# use format <script> <username> <...
1
vote
Accepted
Remove/move files in a directory with filename filter
Use a wildcard
mv 1660649147?????????.jpg frames2/
Depending on whether or not you mean to include the upper limit, maybe also
mv 1660649148000000000.jpg frames2/
If there are too many files for the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
files × 4752linux × 764
bash × 506
shell-script × 481
permissions × 437
shell × 360
filesystems × 358
find × 338
directory × 279
command-line × 265
rename × 229
text-processing × 215
scripting × 168
timestamps × 159
ls × 145
rm × 145
awk × 143
grep × 122
filenames × 119
sed × 109
mv × 105
wildcards × 97
ubuntu × 94
date × 86
file-copy × 85