Skip to main content
name of the site is two words
Source Link
Heretic Monkey
  • 12.1k
  • 5
  • 49
  • 70

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflowStack Overflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow Stack Overflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUserSuper User.

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUser.

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on Stack Overflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. Stack Overflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or Super User.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked questionyour first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUser.

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUser.

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUser.

Source Link
user1228
user1228

I believe I'm in the minority when it comes to this subject, but I'll add it as an answer and let the voters decide.

I think shell questions should be off topic on StackOverflow unless your question is specifically about scripting the shell.

Some people seem to have a problem with this distinction. They seem to think that help with a shell command is "scripting". I would argue that it is not. Let me try to illustrate the distinction with an example from your first linked question. The OP states:

I'm new to bash (started with DOS circa.1983), so need some help with crafting a script that will list folders & files in the backup folder not found anywhere in the source folder, OR files that are physically identical but in different folders.

Although a crap question (code my bash script for me), the task that the OP is trying to achieve appears to be complex enough as to require the creation of a script to accomplish. It seems like it would require listing directories, piping the result to some kind of parser, piping that result to something that would find the differences, and finally to something that would resolve those differences by copying files. Of course, I'm not a bash script writer, so I am completely wrong. From your answer:

rsync --delete --update --archive SOURCE_FOLDER/ SAME_FOLDER_NAME

is all that is needed to accomplish the OP's goal. This is not a script. It's a command. rsync is a file transfer program found on unix boxes. StackOverflow is not the place to ask about what command line arguments to pass to rsync in order to back up a directory onto archive media. That has about as much to do with programming as asking how to start Steam up in full-screen mode.

I believe the line should be drawn here. If you are scripting, then you're welcome here. If you are simply executing a command line application, go ask on Unix & Linux or SuperUser.