Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
0 answers
49 views

Does POSIX specify sed -E? [duplicate]

sed uses basic regular expressions (BRE) by default. Some implementations offer an option to switch to extended regular expressions instead. GNU sed introduced the -r option to do so in version 3.01 ...
Socowi's user avatar
  • 635
2 votes
2 answers
6k views

What is the difference between bash script and shell script [duplicate]

As there are different kinds of shells, What is the difference between bash and shell scripts and is there any compatible script on can write that runs on al unix shells
JohnTheBeloved's user avatar
5 votes
1 answer
1k views

Single or double brackets and portability

I have found some very good answers here on the differences between [ and [[ in 'if' statements. For specific named shells, it seems to be a good idea to use [[ over [ (and it is faster, too). I'm ...
JetpackJohn's user avatar
4 votes
3 answers
1k views

Standard and portable way to send email from console?

What is the most portable or standard way to send an email from the console or a script on Linux, and possibly Unix?
Totor's user avatar
  • 20.7k
75 votes
6 answers
6k views

Resources for portable shell programming

What resources exist for portable shell programming? The ultimate answer is to test on all targeted platforms, but that's rarely practical. The POSIX / Single UNIX specification is a start, but it ...
Gilles 'SO- stop being evil''s user avatar