开发者

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

开发者 https://www.devze.com 2023-03-17 13:34 出处:网络
A similar question exists but the best answer seems to state there is no pure solution, but rather one needs t开发者_如何转开发o call the operating system.

A similar question exists but the best answer seems to state there is no pure solution, but rather one needs t开发者_如何转开发o call the operating system.

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


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


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

  • http://commons.apache.org/lang/
  • http://commons.apache.org/io/
  • http://code.google.com/p/guava-libraries/

Should make life easier to implement them.

This question also mentions a solution for ls


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();

0

精彩评论

暂无评论...
验证码 换一张
取 消