Update FreeBSD.md
This commit is contained in:
10
FreeBSD.md
10
FreeBSD.md
@ -49,3 +49,13 @@ zfs send -Rv old_pool/<dataset_name>@relocate | zfs receive -d new_pool/<new_dat
|
||||
history | grep <command>
|
||||
!<id command>
|
||||
```
|
||||
|
||||
### For loop to copy files and rename in destination
|
||||
|
||||
```sh
|
||||
foreach f (*.jpg)
|
||||
cp "$f" /destination/newname-"$f"
|
||||
end
|
||||
```
|
||||
|
||||
Use quotes if filenames have spaces
|
||||
Reference in New Issue
Block a user