본문 바로가기

Tech/리눅스

Shell Command

Python Jupyter notebook에서 shell command에 반복문 (for loop) 사용하는 법

 

Python Jupyter notebook에서 shell command에 반복문 (for loop) 사용하는 법

python shell command 명령어와 for loop를 함께 사용하는 법을 정리해봅니다

tyami.github.io

 

 

 

How to remove carriage return from a variable in shell script
https://stackoverflow.com/questions/15520339/how-to-remove-carriage-return-from-a-variable-in-shell-script

 

echo $testVar | tr -d '\r'
cat myscript | tr -d '\r'

 

 

 

 

'Tech > 리눅스' 카테고리의 다른 글

Slurm  (0) 2024.03.06
SSH 접속  (0) 2024.03.05
Failed to initialize NVML: Driver/library version mismatch  (0) 2023.11.05
Visual Studio Code Error: The Editor Could not be opened  (0) 2023.09.27









>