This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(" ")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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' |