I have this command :
for /D %%D in ("%appdata%\Mozilla\Firefox\Profiles\*") do xcopy /y %SourceFile% "%%D\Extensions\"
(Send the file to the sub folder "Extensions" in each of the folders under the wanted path)
And I need to do the same with bash. I tried :
for i in "/Users/XUser/Library/Application\ \Support/Firefox/Profiles/*"; do
cp "/Users/Xuser/Desktop/Extension@tgo.com.xpi" "$i"
done
but *
doesn't apply here for all folder and I don't know how to do the equivalent for "%%D\\Extensions\\"
.
Don't quote the wildcard. If it's in quotes then it's a literal asterisk rather than a glob.
for i in /Users/XUser/Library/Application\ Support/Firefox/Profiles/*; do
cp /Users/Xuser/Desktop/Extension@tgo.com.xpi "$i"
done
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.