Questions tagged [sh]

The Unix shell known as sh has been the standard since the release of Version 7 Unix. The behavior of shells has been standardized by POSIX, which is based on the Bourne Shell. It's important for portable shell scripts to adhere to this standardized syntax. This tag is appropriate for questions related to Bourne/POSIX-style shells. Before posting here with any shell scripts that contain errors, be sure to check them using http://shellcheck.net.

Is it possible to list bash/sh files as dependencies in package.json?

Currently, I have a bash script named publish.sh that I use for publishing modules to npm. Since I am constantly adjusting this script, I find myself needing to update every copy of it in each npm module I manage. Is there a method to include this bash sc ...

Getting the value from a .sh (Shell Script) file in React: How to do it?

There is a .sh file that contains the following code: echo "Hello" This code produces the output: Hello The question at hand is: I am trying to extract the output from the .sh file and integrate it into my React application. After exploring various ...

Iterating over a collection of objects to retrieve a specific value

{ "items": [ { "id": "12sd31sd", "name": "test1", "createdDate": 1554894979, }, { "id": "sz978z7", "name": "test2", "createdDate": 1569595456, }, ...