Skip to content
Advertisement

Tag: shell

Search and Replace ( multiple lines )

Hello StackOverflow Community! I’m working on a bash script to change in Dynamic text file, I want to replace multiple lines with one line. Ex: This example, I want to replace THIS With KKKKK Before script After script I found a script to replace using ( sed ) but it doesn’t replace multiple lines. NOTE: I’m a beginner at scripting

Parse command `watch` with `InputStream`

I have this command: How I can to parse output from this command? When I get InputStream of this Process, I get an empty line every time. — I used to restart the command via Java, creating a new thread and all over again. Now, I decided to implement it with the help of watch. Snippet of code: Answer A

dynamic string search in shell script

I have a string in shell script which is I need to find DS_BLS_max(sequence number).dat here DS_BLS_max(sequence number).dat=DS_BLS_739.dat Answer Output: DS_BLS_739.dat See: The Stack Overflow Regular Expressions FAQ

gcloud instance disk space

I am trying to do some computing on cloud. For this I created a computing instance and then I attached an external storage with about 10TB. But it seemed that I did something wrong and I got only 200GB available for my datalab. Any comment will be helpful To check this I used and Thanks. Answer As I can see

Advertisement