#!/bin/bash for i in $(echo $PATH | sed s/:/' '/g) do echo $i done