How to set child process’ environment variable in Makefile
I would like to change this Makefile: SHELL := /bin/bash PATH := node_modules/.bin:$(PATH) boot: @supervisor \ –harmony \ –watch etc,lib \ –extensions js,json … Read more
I would like to change this Makefile: SHELL := /bin/bash PATH := node_modules/.bin:$(PATH) boot: @supervisor \ –harmony \ –watch etc,lib \ –extensions js,json … Read more
wc -l file.txt outputs number of lines and file name. I need just the number itself (not the file name). I can do … Read more
This question already has answers here: Rename multiple files based on pattern in Unix (23 answers) Closed 4 years ago. Write a simple … Read more
I just recently switched from bash to zsh, however I miss my Alt+LeftArrowKey and Alt+RightArrowKey to go back and forth a word at … Read more
This question already has answers here: How can I check if a program exists from a Bash script? (39 answers) Closed 3 years … Read more
My command’s output is something like: 1540 “A B” 6 “C” 119 “D” The first column is always a number, followed by a … Read more
I’m sure I once found a shell command which could print the common lines from two or more files. What is its name? … Read more
I can’t seem to get jq to behave “normally” in a shell pipeline. For example: $ curl -s https://api.github.com/users/octocat/repos | jq | cat … Read more
find . -type d can be used to find all directories below some start point. But it returns the current directory (.) too, … Read more
I’m executing a script connecting via password-less SSH on a remote host. I want to set a timeout, so that if the remote … Read more