SlideShare uma empresa Scribd logo
1 de 20
grep
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
伝えたいこと
grepで出来な
い検索は無い!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
経歴・スキル
•経歴
Future中途5年目のgreper
•スキルセット
grep+α
•得意なgrepコンボ
find -> grep -> cut -> sort -> uniq ->
while ->find -> grep -> awk!!!!
だいたいこれでワンパン出来
るぞ!
当然ワンライナーだ!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
社内Greperを勝手に代表
して語らせてもらいます!
ツッコミは終わってからこっそりお願いします。。。
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
ここからの内容は日常で
は99%、
お仕事でも95%不要な
自己満足です。
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
!!!警告!!!
こんな人を対象にしてます
grep = 手足の様に使える
find =もはやgrepのオプションだよね?
while = もはや(ry
cut/sed/tr/sed/uniq/awk = (ry
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
お題
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep使ってソース解析!
某L案件のBがつくFWを使ったSアプ
リを解析!
画面のmethod単位にテーブルまでの
経路をgrepで出力だ!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
DBLogicWEB
Grep使ってソース解析!
動機
何故かドキュメントからCRUDを追えず、各種調査の
為にはソースから追うしか無かった。
Action Facade Logic
Logic SQL
SQL
table
table
1:1 1:n 1:1 1:n
1:n
1:1
Util Action
この画面で
使っている
コレ知りた
い!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep使ってソース解析!
解析の概要
Import ….XXXX
public/private/prote
cted..(){
…
}
public/private/prote
cted..(){
XXXX.YYY
}
public/private/prote
cted.. YYY(){
…ZZZZ
}
Import ….ZZZZ
① findでHTTPを受けるActionを探す
② ImportにTARGETになるClassが含まれているか
grep
③ 読んでいるmethodを上からgrep
④ 読んでいたらネストしてやっぱり2-3を繰り返す
…繰り返す
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep使ってソース解析!
結果
実演が流行りらしいので、動かして
みます
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep使ってソース解析!
自己満ロジック
Method判定処理
grep -nE "(protected|private|public) .*("
${FILE_NAME}|grep -A 1 "${METHOD}"|cut -d: -f1
278: public void ${METHOD} () {
290: public void ${NEXT_METHOD}() {
grepで検索したいMethodを引っ掛けて、次のMethodの行
数からMethodの範囲を判定!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep使ってソース解析!
自己満ロジック
Methodの中から目的のmethod Call判定
cat ${IMPLE} | head -$((METHOD_END-1)) | tail -`expr
$((METHOD_END-1)) - $((METHOD_START+0)) + 1`|grep -ic
${CALL}
public void ${METHOD} () {
・・・・
${CALL}
・・・・
}
grepでMethodを抜いて、methodのcall判定!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
書いたソース
動機
生々しかったり汚かったり
色々あるけど、急いでたか
ら許して・・・
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
実行したコマンド利用回数
コマンド 使った回数
grep 17回(ソースが糞だから?
find 15回
while 10回
sort 5回
uniq 4回
awk 4回
解析したソース
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
感想
grep やっぱりすげー
糞ループでこの速度
スピード感半端ないっす
ルールさえ判れば何でも抜ける気が
しました。
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
まとめ
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
grep の鉄則
ルール化できれば
勝ったも同然
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
トレンドから外れようが良い
ものは良い。
grepを使いこなすとServer
からテキストファイルをダウ
ンロードしてExcelで解析と
かいう謎行動が激減するので
使ってみてね!
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
Grep uniq cut sed while do find
find Grep uniq cut sed while do
do find Grep uniq cut sed while
while do find Grep uniq cut sed
sed while do find Grep uniq cut
cut sed while do find Grep uniq
やっぱり
grepで出来
ない検索は無
かった!

Mais conteúdo relacionado

Destaque

電通大発、働き方を伝えるメディア  UEQareer
電通大発、働き方を伝えるメディア  UEQareer電通大発、働き方を伝えるメディア  UEQareer
電通大発、働き方を伝えるメディア  UEQareerKen Takahashi
 
なれる!デザイナー(ロゴ作りから始めるデザイン入門)
なれる!デザイナー(ロゴ作りから始めるデザイン入門)なれる!デザイナー(ロゴ作りから始めるデザイン入門)
なれる!デザイナー(ロゴ作りから始めるデザイン入門)hiroki tanaka
 
マイナーデスクトップOsたち
マイナーデスクトップOsたちマイナーデスクトップOsたち
マイナーデスクトップOsたちMasaki Matsumoto
 
IoTでアヒルを動かしてみました
IoTでアヒルを動かしてみましたIoTでアヒルを動かしてみました
IoTでアヒルを動かしてみましたKota Takebayashi
 
ログモニタリングツールを自作した話
ログモニタリングツールを自作した話ログモニタリングツールを自作した話
ログモニタリングツールを自作した話Hiroki Takeda
 
未来太郎と未来花子
未来太郎と未来花子未来太郎と未来花子
未来太郎と未来花子ming li
 
AI(強化学習)でロボットに学習させてみた
AI(強化学習)でロボットに学習させてみたAI(強化学習)でロボットに学習させてみた
AI(強化学習)でロボットに学習させてみたakmtt
 
Elixir 社内布教 第一節
Elixir 社内布教 第一節Elixir 社内布教 第一節
Elixir 社内布教 第一節fireowl11
 
最適化で身近な◯◯のワクワクを取り戻そう
最適化で身近な◯◯のワクワクを取り戻そう最適化で身近な◯◯のワクワクを取り戻そう
最適化で身近な◯◯のワクワクを取り戻そうJUNKI MANO
 
君達はまだAlloyの本当のすごさを知らない
君達はまだAlloyの本当のすごさを知らない君達はまだAlloyの本当のすごさを知らない
君達はまだAlloyの本当のすごさを知らないHideki Sugimoto
 
最近のTUI(Terminal-based User Interface)事情
最近のTUI(Terminal-based User Interface)事情最近のTUI(Terminal-based User Interface)事情
最近のTUI(Terminal-based User Interface)事情Kota Kanbe
 
もうすぐ春だしAWSでさくらをやってみた
もうすぐ春だしAWSでさくらをやってみたもうすぐ春だしAWSでさくらをやってみた
もうすぐ春だしAWSでさくらをやってみたMasamitsu Maehara
 
Rails5β + herokuで遊んでみた
Rails5β +  herokuで遊んでみたRails5β +  herokuで遊んでみた
Rails5β + herokuで遊んでみたshota miyazaki
 

Destaque (20)

こじらせVBA
こじらせVBAこじらせVBA
こじらせVBA
 
電通大発、働き方を伝えるメディア  UEQareer
電通大発、働き方を伝えるメディア  UEQareer電通大発、働き方を伝えるメディア  UEQareer
電通大発、働き方を伝えるメディア  UEQareer
 
なれる!デザイナー(ロゴ作りから始めるデザイン入門)
なれる!デザイナー(ロゴ作りから始めるデザイン入門)なれる!デザイナー(ロゴ作りから始めるデザイン入門)
なれる!デザイナー(ロゴ作りから始めるデザイン入門)
 
マイナーデスクトップOsたち
マイナーデスクトップOsたちマイナーデスクトップOsたち
マイナーデスクトップOsたち
 
IoTでアヒルを動かしてみました
IoTでアヒルを動かしてみましたIoTでアヒルを動かしてみました
IoTでアヒルを動かしてみました
 
20160811車載
20160811車載20160811車載
20160811車載
 
Future_Lt20160810
Future_Lt20160810Future_Lt20160810
Future_Lt20160810
 
20160810-lt-cygwin
20160810-lt-cygwin20160810-lt-cygwin
20160810-lt-cygwin
 
ログモニタリングツールを自作した話
ログモニタリングツールを自作した話ログモニタリングツールを自作した話
ログモニタリングツールを自作した話
 
20161119 lt
20161119 lt20161119 lt
20161119 lt
 
未来太郎と未来花子
未来太郎と未来花子未来太郎と未来花子
未来太郎と未来花子
 
Spark CL
Spark CLSpark CL
Spark CL
 
AI(強化学習)でロボットに学習させてみた
AI(強化学習)でロボットに学習させてみたAI(強化学習)でロボットに学習させてみた
AI(強化学習)でロボットに学習させてみた
 
Elixir 社内布教 第一節
Elixir 社内布教 第一節Elixir 社内布教 第一節
Elixir 社内布教 第一節
 
Beats
BeatsBeats
Beats
 
最適化で身近な◯◯のワクワクを取り戻そう
最適化で身近な◯◯のワクワクを取り戻そう最適化で身近な◯◯のワクワクを取り戻そう
最適化で身近な◯◯のワクワクを取り戻そう
 
君達はまだAlloyの本当のすごさを知らない
君達はまだAlloyの本当のすごさを知らない君達はまだAlloyの本当のすごさを知らない
君達はまだAlloyの本当のすごさを知らない
 
最近のTUI(Terminal-based User Interface)事情
最近のTUI(Terminal-based User Interface)事情最近のTUI(Terminal-based User Interface)事情
最近のTUI(Terminal-based User Interface)事情
 
もうすぐ春だしAWSでさくらをやってみた
もうすぐ春だしAWSでさくらをやってみたもうすぐ春だしAWSでさくらをやってみた
もうすぐ春だしAWSでさくらをやってみた
 
Rails5β + herokuで遊んでみた
Rails5β +  herokuで遊んでみたRails5β +  herokuで遊んでみた
Rails5β + herokuで遊んでみた
 

Último

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...kalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfryanfarris8
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...software pro Development
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 

Último (20)

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 

Grep

  • 2. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 伝えたいこと grepで出来な い検索は無い!
  • 3. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 経歴・スキル •経歴 Future中途5年目のgreper •スキルセット grep+α •得意なgrepコンボ find -> grep -> cut -> sort -> uniq -> while ->find -> grep -> awk!!!! だいたいこれでワンパン出来 るぞ! 当然ワンライナーだ!
  • 4. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 社内Greperを勝手に代表 して語らせてもらいます! ツッコミは終わってからこっそりお願いします。。。
  • 5. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq ここからの内容は日常で は99%、 お仕事でも95%不要な 自己満足です。
  • 6. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq !!!警告!!! こんな人を対象にしてます grep = 手足の様に使える find =もはやgrepのオプションだよね? while = もはや(ry cut/sed/tr/sed/uniq/awk = (ry
  • 7. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq お題
  • 8. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep使ってソース解析! 某L案件のBがつくFWを使ったSアプ リを解析! 画面のmethod単位にテーブルまでの 経路をgrepで出力だ!
  • 9. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq DBLogicWEB Grep使ってソース解析! 動機 何故かドキュメントからCRUDを追えず、各種調査の 為にはソースから追うしか無かった。 Action Facade Logic Logic SQL SQL table table 1:1 1:n 1:1 1:n 1:n 1:1 Util Action この画面で 使っている コレ知りた い!
  • 10. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep使ってソース解析! 解析の概要 Import ….XXXX public/private/prote cted..(){ … } public/private/prote cted..(){ XXXX.YYY } public/private/prote cted.. YYY(){ …ZZZZ } Import ….ZZZZ ① findでHTTPを受けるActionを探す ② ImportにTARGETになるClassが含まれているか grep ③ 読んでいるmethodを上からgrep ④ 読んでいたらネストしてやっぱり2-3を繰り返す …繰り返す
  • 11. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep使ってソース解析! 結果 実演が流行りらしいので、動かして みます
  • 12. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep使ってソース解析! 自己満ロジック Method判定処理 grep -nE "(protected|private|public) .*(" ${FILE_NAME}|grep -A 1 "${METHOD}"|cut -d: -f1 278: public void ${METHOD} () { 290: public void ${NEXT_METHOD}() { grepで検索したいMethodを引っ掛けて、次のMethodの行 数からMethodの範囲を判定!
  • 13. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep使ってソース解析! 自己満ロジック Methodの中から目的のmethod Call判定 cat ${IMPLE} | head -$((METHOD_END-1)) | tail -`expr $((METHOD_END-1)) - $((METHOD_START+0)) + 1`|grep -ic ${CALL} public void ${METHOD} () { ・・・・ ${CALL} ・・・・ } grepでMethodを抜いて、methodのcall判定!
  • 14. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 書いたソース 動機 生々しかったり汚かったり 色々あるけど、急いでたか ら許して・・・
  • 15. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 実行したコマンド利用回数 コマンド 使った回数 grep 17回(ソースが糞だから? find 15回 while 10回 sort 5回 uniq 4回 awk 4回 解析したソース
  • 16. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq 感想 grep やっぱりすげー 糞ループでこの速度 スピード感半端ないっす ルールさえ判れば何でも抜ける気が しました。
  • 17. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq まとめ
  • 18. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq grep の鉄則 ルール化できれば 勝ったも同然
  • 19. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq トレンドから外れようが良い ものは良い。 grepを使いこなすとServer からテキストファイルをダウ ンロードしてExcelで解析と かいう謎行動が激減するので 使ってみてね!
  • 20. find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq Grep uniq cut sed while do find find Grep uniq cut sed while do do find Grep uniq cut sed while while do find Grep uniq cut sed sed while do find Grep uniq cut cut sed while do find Grep uniq やっぱり grepで出来 ない検索は無 かった!