Skip to content

Instantly share code, notes, and snippets.

# Find text in files
find | xargs grep 'text to find' -l
# Find and exec command
find -name '*.bak' -exec rm {} \;
# Find only dirs
find -type d
# Find only files
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* ProcessBroker pb = new ProcessBroker("ps -ef | grep java".split(" "));
-- Show all tables
> SELECT TABLE_NAME FROM TABS
-- List fields from a table
> SELECT *
FROM user_tab_cols
WHERE table_name = 'table_name'
-- List some fields fields from a table
> SELECT column_name, data_type, FROM user_tab_cols WHERE table_name = 'table_name'