mP.
mP.

Reputation: 18266

Java implementation of common unix file utilities like ls, cat, etc

A similar question exists but the best answer seems to state there is no pure solution, but rather one needs to call the operating system.

Why am i after such utilities, primarily so i can integrate them into the groovy shell.

Upvotes: 0

Views: 3675

Answers (3)

marco
marco

Reputation: 751

Some (mostly text-processing related) unix commands are implemented here: http://www.unix4j.org

Upvotes: 4

dgorissen
dgorissen

Reputation: 6305

I am unaware of a pre-cooked, drop in jar, and this same question on superuser indicates there isnt one. However, libraries such as:

Should make life easier to implement them.

This question also mentions a solution for ls

Upvotes: 0

Peter Lawrey
Peter Lawrey

Reputation: 533660

Most of this functionality is available in Java, it just has different names.

If you want to call these applications you can use Runtime.exec();

Upvotes: -1

Related Questions