Overture Rede21 open jobs

Sharepoint Developer

Enterprise apps (SAP, Salesforce, ERP)Posted 7 weeks agovia Himalayas, a remote job board

Work type
RemoteIn India
Experience
5+ years
Pay
Not listedUsually ₹12 LPAEnterprise apps (SAP, Salesforce, ERP), median at 5–9 years, in India (Payscale)
Posted
7 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Shell scripting

About the job

Location : Remote
Experience : Min. 5+yrs
SharePoint Design ,
SharePoint Augmentation with Metadata & Workflows wherever deemed necessary
2) Understand current-state of MS environment & create architecture for furture ready document management system
3)Create and design pages and navigation based on requirements to mimic existing structure within Confluence.
4) Review possible Power Platform high level designs and recommendations build solutions accordingly
5) Create and build new SharePoint webparts based on requirements 6) Create and build templates based on requirements
7) Resource should be experienced with PowerShell Scripting

Originally posted on Himalayas

Interested?Sharepoint Developer at Overture Rede

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Shell scripting

Interview questions for this job

For the skills the ad mentions: Shell scripting.

40 questions
  • Difference between sh and BashShell scripting

    What is sh?

    sh (or the Shell Command Language) is a programming language described by the POSIX standard. It has many implementations (ksh88, Dash, etc.). Bash can also be considered an implementation of sh (see below).

    Because sh is a specification, not an implementation, /bin/sh is a symbolic link (or a hard link) to an actual implementation on most POSIX systems.

    What is Bash?

    Bash started as an sh-compatible implementation (although it predates the POSIX standard by a few years), but as time passed it has acquired many extensions. Many of these extensions may change the behavior of valid POSIX shell scripts, so by itself Bash is not a valid POSIX shell. Rather, it is a dialect of the POSIX shell language.

    Bash supports a --posix switch, which makes it more POSIX-compliant. It also tries to mimic POSIX if invoked as sh.

    Is sh = bash?

    For a long time, /bin/sh used to point to /bin/bash on most GNU/Linux systems. As a result, it had almost become safe to ignore the difference between the two. But that started to change recently.

    Some popular examples of systems where /bin/sh does not point to /bin/bash (and on some of which /bin/bash may not even exist) are:

    1. Modern Debian and Ubuntu systems, which symbolic links executable sh to executable dash by default;

    2. Busybox, which is usually run during the Linux system boot time as part of initramfs. It uses the ash shell implementation.

    3. BSD systems, and in general any non-Linux systems. OpenBSD uses pdksh, a descendant of the KornShell (executable ksh). FreeBSD's sh is a descendant of the original Unix Bourne shell. Solaris has its own sh which for a long time was not POSIX-compliant; a free implementation is available from the Heirloom project.

    How can you find out what /bin/sh points to on your system?

    The complication is that /bin/sh could be a symbolic link or a hard link. If it's a symbolic link, a portable way to resolve it is:

    file -h /bin/sh
    

    Output:

    /bin/sh: symbolic link to bash
    

    If it's a hard link, try

    find -L /bin -samefile /bin/sh
    

    Output:

    /bin/sh
    /bin/bash
    

    Read the rest at the sourceFrom Stack Overflow: asked by Weiwei Yang, answered by Roman Cheplyaka (CC BY-SA 4.0)

  • How do I get the directory where a Bash script is located from within the script itself?Shell scripting
    #!/usr/bin/env bash
    SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
    

    is a useful one-liner which will give you the full directory name of the script no matter where it is being called from.

    It will work as long as the last component of the path used to find the script is not a symlink (directory links are OK). If you also want to resolve any links to the script itself, you need a multi-line solution:

    #!/usr/bin/env bash
    get_script_dir()
    {
        local SOURCE_PATH="${BASH_SOURCE[0]}"
        local SYMLINK_DIR
        local SCRIPT_DIR
        # Resolve symlinks recursively
        while [ -L "$SOURCE_PATH" ]; do
            # Get symlink directory
            SYMLINK_DIR="$( cd -P "$( dirname "$SOURCE_PATH" )" >/dev/null 2>&1 && pwd )"
            # Resolve symlink target (relative or absolute)
            SOURCE_PATH="$(readlink "$SOURCE_PATH")"
            # Check if candidate path is relative or absolute
            if [[ $SOURCE_PATH != /* ]]; then
                # Candidate path is relative, resolve to full path
                SOURCE_PATH=$SYMLINK_DIR/$SOURCE_PATH
            fi
        done
        # Get final script directory path from fully resolved source path
        SCRIPT_DIR="$(cd -P "$( dirname "$SOURCE_PATH" )" >/dev/null 2>&1 && pwd)"
        echo "$SCRIPT_DIR"
    }
    echo "get_script_dir: $(get_script_dir)"
    

    This last one will work with any combination of aliases, source, bash -c, symlinks, etc.

    Beware: if you cd to a different directory before running this snippet, the result may be incorrect!

    Also, watch out for $CDPATH gotchas, and stderr output side effects if the user has smartly overridden cd to redirect output to stderr instead (including escape sequences, such as when calling update_terminal_cwd >&2 on Mac). Adding >/dev/null 2>&1 at the end of your cd command will take care of both possibilities.

    To understand how it works, try running this more verbose form:

    #!/usr/bin/env bash
    SOURCE=${BASH_SOURCE[0]}
    while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
      TARGET=$(readlink "$SOURCE")
      if [[ $TARGET == /* ]]; then
        echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'"
        SOURCE=$TARGET
      else
        DIR=$( dirname "$SOURCE" )
        echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')"
        SOURCE=$DIR/$TARGET # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
      fi
    done
    echo "SOURCE is '$SOURCE'"
    RDIR=$( dirname "$SOURCE" )
    DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
    if [ "$DIR" != "$RDIR" ]; then
      echo "DIR '$RDIR' resolves to '$DIR'"
    fi
    echo "DIR is '$DIR'"
    

    And it will print something like:

    SOURCE './scriptdir.sh' is a relative symlink to 'sym2/scriptdir.sh' (relative to '.')
    SOURCE is './sym2/scriptdir.sh'
    DIR './sym2' resolves to '/home/ubuntu/dotfiles/fo fo/real/real1/real2'
    DIR is '/home/ubuntu/dotfiles/fo fo/real/real1/real2'
    

    From Stack Overflow: asked by Jiaaro, answered by dogbane (CC BY-SA 4.0)

  • Echo newline in Bash prints literal \nShell scripting

    Use printf instead:

    printf 'Hello, \nWorld!\n'
    

    printf behaves more consistently across different environments than echo.

    From Stack Overflow: asked by Sergey, answered by sth (CC BY-SA 4.0)

  • In Bash, when to alias, when to script and when to write a function?Shell scripting

    An alias should effectively not (in general) do more than change the default options of a command. It is nothing more than simple text replacement on the command name. It can't do anything with arguments but pass them to the command it actually runs. So if you simply need to add an argument at the front of a single command, an alias will work. Common examples are

    # Make ls output in color by default.
    alias ls="ls --color=auto"
    # make mv ask before overwriting a file by default
    alias mv="mv -i"
    

    A function should be used when you need to do something more complex than an alias but that wouldn't be of use on its own. For example, take this answer on a question I asked about changing grep's default behavior depending on whether it's in a pipeline:

    grep() { 
        if [[ -t 1 ]]; then 
            command grep -n "$@"
        else 
            command grep "$@"
        fi
    }
    

    It's a perfect example of a function because it is too complex for an alias (requiring different defaults based on a condition), but it's not something you'll need in a non-interactive script.

    If you get too many functions or functions too big, put them into separate files in a hidden directory, and source them in your ~/.bashrc:

    if [ -d ~/.bash_functions ]; then
        for file in ~/.bash_functions/*; do
            . "$file"
        done
    fi
    

    A script should stand on its own. It should have value as something that can be re-used, or used for more than one purpose.

    From Unix & Linux Stack Exchange: asked by ixtmixilix, answered by Kevin (CC BY-SA 3.0)

  • What is the meaning of IFS=$'\n' in bash scripting?Shell scripting

    IFS stands for "internal field separator". It is used by the shell to determine how to do word splitting, i. e. how to recognize word boundaries.

    Try this in a shell like bash (other shells may handle this differently, for example zsh):

    mystring="foo:bar baz rab"
    for word in $mystring; do
      echo "Word: $word"
    done
    

    The default value for IFS consists of whitespace characters (to be precise: space, tab and newline). Each character can be a word boundary. So, with the default value of IFS, the loop above will print:

    Word: foo:bar
    Word: baz
    Word: rab
    

    In other words, the shell thinks that whitespace is a word boundary.

    Now, try setting IFS=: before executing the loop. This time, the result is:

    Word: foo
    Word: bar baz rab
    

    Now, the shell splits mystring into words as well -- but now, it only treats a colon as the word boundary.

    The first character of IFS is special: It is used to delimit words in the output when using the special $* variable (example taken from the Advanced Bash Scripting Guide, where you can also find more information on special variables like that one):

    $ bash -c 'set w x y z; IFS=":-;"; echo "$*"'
    w:x:y:z
    

    Compare to:

    $ bash -c 'set w x y z; IFS="-:;"; echo "$*"'
    w-x-y-z
    

    Note that in both examples, the shell will still treat all of the characters :, - and ; as word boundaries. The only thing that changes is the behaviour of $*.

    Another important thing to know is how so-called "IFS whitespace" is treated. Basically, as soon as IFS includes whitespace characters, leading and trailing whitespace is stripped from the string to be split before processing it and a sequence of consecutive whitespace characters delimits fields as well. However, this only applies to those whitespace characters which are actually present in IFS.

    For example, let's look at the string "a:b:: c d " (trailing space and two space characters between c and d).

    1. With IFS=: it would be split into four fields: "a", "b", "" (empty string) and " c d " (again, two spaces between c and d). Note the leading and trailing whitespace in the last field.
    2. With IFS=' :', it would be split into five fields: "a", "b", "" (empty string), "c" and "d". No leading and trailing whitespace anywhere.

    Note how multiple, consecutive whitespace characters delimit two fields in the second example, while multiple, consecutive colons don't (since they are not whitespace characters).

    As for IFS=$'\n', that is a ksh93 syntax also supported by bash, zsh, mksh and FreeBSD sh (with variations between all shells). Quoting the bash manpage:

    Words of the form $'string' are treated specially. The word expands to "string", with backslash-escaped characters replaced as specified by the ANSI C standard.

    \n is the escape sequence for a newline, so IFS ends up being set to a single newline character.

    From Unix & Linux Stack Exchange: asked by Abdul Al Hazred, answered by Tilman Blumenbach (CC BY-SA 3.0)

  • Can you tell us about a personal achievement at work?Behavioural

    Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:

    • when have you faced a challenging situation?
    • can you tell us about a personal achievement at work?
    • have you ever taken the initiative?
    • have you ever failed at a task?

    Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.

    If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.

    Use the  STAR method  to help structure your answers.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: SAP, Salesforce and ERP jobs in India (1,548) and Remote SAP, Salesforce and ERP jobs in India (487)