-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.ExampleUnixCommands.txt
More file actions
38 lines (37 loc) · 1 KB
/
Copy pathtemplate.ExampleUnixCommands.txt
File metadata and controls
38 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# --------
# Searches
# --------
#
# Search all files named *.java in an entire directory tree for the string "ValueComparisonOperator"
#
# find . -name "*.java" -print | xargs grep "ValueComparisonOperator" > ~/look.here.txt
#
# Find all files with a specific name in an entire directory tree
#
# find . -name "*.svn" -print
#
# -----------------
# Search and delete
# -----------------
#
# Remove all files with a specific name in an entire directory tree
#
# find . -name "*.svn" -exec rm -rf {} \;
#
# Replace all instances of "env.PROJECTS" with "env.BBAS_PROJECTS" in all xml files in
# an entire directory tree
#
# find . -name "*.xml" -print | xargs sed -i 's/env\.PROJECTS/env\.BBAS_PROJECTS/g'
#
# -----------------------------------------------------
# Report things about your distribution, system, and OS
# -----------------------------------------------------
#
# Output distribution-specific information
#
# lsb_release -a
#
# Learn about your machine and the installed OS
#
# uname -a
# uname -m