Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 questions only user 277542

The shell is Unix's command-line interface. You can type commands in a shell interactively, or write scripts to automate tasks. Use this tag for questions applying to /bin/sh and most compatible shells (ash, bash, ksh, zsh, …). For shell scripts with errors, please check them in http://shellcheck.net before posting here.

4
votes
1answer
I have following shell script. OUTPUT=$(systemctl is-active etcd) if [[ $OUTPUT == active ]]; then echo "The result is successfull" else echo "The result is unsuccessfull" fi I …
asked May 11 by smc
0
votes
2answers
I have been trying to write a script that will ask the user whether he/she should run the command again. If the answer is yes, then it should execute the last command again. Even after 2nd time exec …
asked Apr 12 '18 by smc
1
vote
3answers
I have a following script that will take input (source path) from user and it will attach the volume inside docker container echo -n "Enter the source path: " read path docker run -v $path:/opt/$p …
asked Aug 31 '18 by smc
0
votes
4answers
I have following text in a text file $ cat test 20180618: 20180619: 20180620: 20180621: 20180622: 20180623: 20180624: I have tried to grep with the range of numbers like below, $ grep 201806{19..2 …
asked Jun 21 '18 by smc
1
vote
1answer
I'm wondering how pressing tab twice is resulting in listening all the files and directories in Linux. I'm specifically interested in where this function is defined.
asked May 18 by smc