Can I put comments ( commented out code or notes that don't affect the script ) inside of single quotes within a shell script?
I have tried the following to get these to work:
# comment
\# comment
\/\* comment \*\/
Below is an example of what I'm trying to do. You'll see my comments start with a hash and are inside single quotes withint the curl request's data package.
curl -XPOST 'http://ec2-54-234-64-66.compute-1.amazonaws.com:9200/nsns/nsn/_mapping?pretty=true' -d '{
"nsn" : {
"type" : "object",
"include_in_all" : "false",
"index" : "no",
"properties" : {
# this data is used for facetting END
"id" : { "type" : "long", "include_in_all" : "true" },
"BDC_CODE" : { "type" : "byte" },
"KID" : { "type" : "byte" },
"ITEM_STANDARDIZATION_CODE" : { "type" : "string" },
# we don't know what these field's data look like yet
"stock_on_hand" : { "type" : "integer" },
"non_stocked_items" : { "type" : "integer" },
"stocked_restrictions" : { "type" : "string" },
"consistency_of_spend" : { "type" : "string" },
"WSDC" : { "type" : "string" }
}
}
}'