Matt
Matt

Reputation: 1032

Make bash script run on both Linux and Solaris

I am writing a script and my script is required to work both on solaris AND Linux (OpenSuse)

The script simply goes in different directories and compares some files and outputs the difference between the files in a specific manner.

Right now, I am developing it on OpenSuse(linux). Are there some good tips on how I can write/edit the script so it works on both OS?

Thank you in advance

Upvotes: 0

Views: 359

Answers (1)

jlliagre
jlliagre

Reputation: 30823

Writing portable script is easy or at least should it be, just use commands specified by the POSIX standard and stick to their documented options and behavior.

Upvotes: 1

Related Questions