how to copy all extensions bash script [closed] - bash

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
So this is probably really easy but I'm new to bash scripts.
I wanted to copy all html files from the directory "/site" to the directory "/checkout/target/site"
I wrote single line of copy code for every one of them but the names keep changing, so I want to write something that copies anything that ends with .html basically
oh and the files might exist in the destination, so overwriting would be a lot better.
Thank you

If it is just in the directory /site (not sub-dirs), this makes it:
cp /site/*html /checkout/target/site/

Related

Remove attachments from PDF files from command line on Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
anyone know of a utility or script that can remove files attached within a PDF file? I am using pdftk to get the attached files using the unpack_files option, however there is not a way to remove those files from the PDF on this software, which is what I really need to happen. Any suggestions are appreciated.
Found a utility called Coherent PDF which will do this in case someone else is needing this.

copy file in command prompt with Arabic file name [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
How can I copy a file with Arabic characters in the name via the command prompt?
I tried this:
copy C:\توزيع العمل.doc D:\توزيع العمل.doc
It didn't work. What I can do to solve this problem? Thank you.
Wrap file path to quotes. Like this "C:\توزيع العمل.doc".
So final command will look like.
copy "C:\توزيع العمل.doc" "D:\توزيع العمل.doc"

Sort files and folders in the same way in Windows Explorer - sorted by names [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I just want to see files and folders (sorted/grouped by their name) in a list that does NOT separate files and folders.
I also don't want to order by date modified like here.
I already tried several solutions. But unfortunaletly non worked. And I don't want to use grouped by that splits it up into A-G... and so on.
xplorer² was able to solve this issue. Anyway I'm still interested in doing this in the Windows explorer without any external tools.
Just wrote a German Tutorial about this and xplorer². It should be easy to understand also for non-Germans. ;)

run named .exe in subdirectory in windows cmd [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
Improve this question
I feel stupid for asking this, but here goes. In linux/mac, you can run an executable file in the shell, simply by writing its name. Can you do something similar in windows command line?
Example: I am in directory dir. I want to run a file a.exe in dir/subdir without changing directory to subdir, or writing subdir/a.exe. Is this possible?
You can using one of the following:
"subdir/a.exe"
subdir\a.exe
You mean you don't want the double-quotes of "subdir/a.exe"? Anyway, if you change to a backslash, it does work; i.e.
subdir\a.exe
It is possible. All you need to do is ensure that the directory in which a.exe resides is included on the path.

cp hosts backup/hosts.bak did not work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I was reading a book on UNIX when I came across this question.
The command
cp hosts backup/hosts.bak
did not work even though all files exist. Name three possible reasons.
I could think of one only and that too I am not sure about.
According to me one reason can be the current directory is not writable by the user.
Please help me out to know the actual reasons.
backup/ is not writeable by the user
hosts is not readable by the user
the disk where backup/ is located is full
hosts is a directory, not a file

Resources