Skip to main content
Dennis Williamson's user avatar
Dennis Williamson's user avatar
Dennis Williamson's user avatar
Dennis Williamson
  • Member for 15 years, 9 months
  • Last seen this week
1527 votes
Accepted

How to split a string into an array in Bash?

1415 votes
Accepted

How do I prompt a user for confirmation in bash script?

735 votes
Accepted

How to iterate over associative arrays in Bash

727 votes
Accepted

How to assign a heredoc value to a variable in Bash?

715 votes
Accepted

How to use double or single brackets, parentheses, curly braces

695 votes
Accepted

Capturing Groups From a Grep RegEx

661 votes
Accepted

What is the difference between sed and awk?

591 votes
Accepted

How to find out line-endings in a text file?

572 votes

How to convert a string to lower case in Bash

533 votes

Test for non-zero length string in Bash: [ -n "$var" ] or [ "$var" ]

509 votes
Accepted

How to output a multiline string in Bash?

494 votes
Accepted

Setting an environment variable before a command in Bash is not working for the second command in a pipe

486 votes
Accepted

How can I output only captured groups with sed?

457 votes
Accepted

How to slice an array in Bash

440 votes
Accepted

In Bash, how to add "Are you sure [Y/n]" to any command or alias?

426 votes

How can I remove all text after a character in bash?

409 votes
Accepted

How to make a program continue to run after log out from ssh?

408 votes
Accepted

How to evaluate http response codes from bash/shell script?

392 votes
Accepted

How to replace spaces in file names using a bash script

381 votes

How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?

350 votes

Getting the last argument passed to a shell script

320 votes

How to split one string into multiple variables in bash shell?

317 votes
Accepted

How to use arguments from previous command?

282 votes
Accepted

How to compare two strings in dot separated version format in Bash?

270 votes
Accepted

How to find directory of some command?

268 votes
Accepted

How to parse a CSV file in Bash?

255 votes
Accepted

Calling shell functions with xargs

249 votes
Accepted

Passing argument to alias in bash

240 votes
Accepted

How to handle more than 10 parameters in shell

233 votes
Accepted

Colors with unix command "watch"?

1
2 3 4 5
81