public static boolean isValidUnixPath(String path)
    {
	String regex="((?:\\/[\\w\\.\\-]+)+)";

	Pattern p = Pattern.compile(regex,Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
	Matcher m = p.matcher(path);
	return m.find();
    }