A simple bash script to compile and run Verilog files using Icarus Verilog
sudo apt install icarus-verilog
wget https://raw.githubusercontent.com/yashkathe/verilog-compile-script/refs/heads/master/compile-verilog &&
mv ./compile-verilog /usr/local/bin/compile-verilog &&
chmod +x /usr/local/bin/compile-verilog
compile-verilog {verilog-file}.v