Linux/terminal

$, grep(Global Regular Expression Print)

Naranjito 2022. 1. 3. 11:40
  • $

 

It moves to the end of the current line.

 

  • grep

 

Global Regular Expression Print, used to search for a string of characters.

~$ pip list | grep tensorflow

>>>

tensorflow                   2.7.0
tensorflow-estimator         2.7.0

...

~$ ls /usr/local/lib | grep pangolin

 

  • python -c

 

Execute the Python code in command. 

$ python -c "import tensorflow as tf;print(tf.__version__)"

>>>

2.8.0

 

'Linux > terminal' 카테고리의 다른 글

Install pyenv-virtualenv on mac  (0) 2022.03.31
How to add new server  (0) 2022.03.31
shell, bash  (0) 2022.03.15
How to connect to the server from the client, set to alias.  (0) 2022.03.15
move folder, rmdir, rm -r, rm -rf ., touch, find, cat, -p  (0) 2021.01.26