Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 80915

BASH is the GNU Bourne Again SHell, the successor to the classic Unix Bourne sh (shell). It's the default shell for various GNU systems.

7 votes
2 answers
316 views

Bash script to temporarily run a shell without certain group memberships

/bin/bash function help(){ echo "rwog - run without groups"; echo "Runs a shell as if you weren't in certain supplementary groups." …
JesseTG's user avatar
  • 459
5 votes
1 answer
300 views

Script to clean up old files that should only run one instance

I'm writing a bash script for deleting old files on a Linux server. Here are some relevant facts about this script: As currently written, it does work as expected. … /usr/bin/env bash NUM_PROCS=4 LIMIT_TIME=30 # days PIDFILE="/tmp/cleanup.pid" PID_NOW="$$" function save-pid() { echo "$1" > "$PIDFILE" if [[ "$?" …
JesseTG's user avatar
  • 459