Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

Deleting lines from one file which are in another file

I have a file f1: line1 line2 line3 line4 .. .. I want to delete all the lines which are in another …

bash scripting sh
Git Alias - Multiple Commands and Parameters

I am trying to create an alias that uses both multiple Git commands and positional parameters. There are Stackoverflow pages …

git sh alias git-alias
systemctl status shows inactive dead

I am trying to write my own (simple) systemd service which does something simple.( Like writing numbers 1 to 10 to a …

linux sh systemd systemctl
Adding users to sudoers through shell script

Is it possible to add users to the sudoers file through a shell script? I've been looking around, still can't …

linux sh sudo
How does Ctrl-C terminate a child process?

I am trying to understand how CTRL+C terminates a child but not a parent process. I see this behavior …

bash shell process sh
How do I merge one directory into another using Bash?

I'm looking for shell script that merge files from one directory into another. Sample: html/ a/ b.html index.html …

bash shell scripting command-line sh
Randomly shuffling lines in Linux / Bash

I have some files in linux. For example 2 and i need shuffling the files in one file. For example $cat …

linux bash shell sh
Calling shell functions with xargs

I am trying to use xargs to call a more complex function in parallel. #!/bin/bash echo_var(){ echo $1 return 0 } …

bash sh xargs
Bash Scripting and bc

I'm trying to write a bash script and I needed to do some floating point math. Basically I want to …

bash scripting sh bc
ZSH not recognizing my aliases?

Using iTerm2 with zsh and it isn't recognizing my aliases. Sometimes I have to work in an IDE and can't …

bash shell sh zsh zshrc