Linked Questions

2 votes
1 answer
190 views

Not able to extract with grep

> <img alt="Citizen Kane Poster" title="Citizen Kane Poster" src="https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ2Mjc1MDQwMl5BMl5BanBnXkFtZTcwNzUyOTUyMg@@._V1_UX182_CR0,0,182,268_AL_....
Swastik Udupa's user avatar
0 votes
5 answers
98 views

Regex to match text between two delimeters?

Heres an example of the things I need to match on a request that I have stored as a text: [{"id":"896","name":"TinyAuras","author_id":"654","author":"Kurisu</span></strong></span></a>","...
Ben's user avatar
  • 777
1 vote
3 answers
93 views

Rename batch of specific files using bash

Say I have a folder which contains files like this: a constant prefix and then an underscore and some description which is different for every file: constantnamehere_description1.doc ...
azal's user avatar
  • 1,250
0 votes
3 answers
149 views

How to verify the output of a command in shell?

I need to verify if a particular file system has the noexec option set. For example /dev/shm. I am running the command in the following manner: get_val=$(mount|grep /dev/shm ) if [[ -z get_val ]] ; ...
CoderBC's user avatar
  • 1,362
0 votes
1 answer
83 views

Parsing files to copy the ones that match my criteria

I have files that are to be copied and removed on different days and different times, and the criteria is part of the file's name. I was thinking of using Bash and regex to combine various variables ...
Paolo's user avatar
  • 2,211
1 vote
1 answer
67 views

"email ip" regex into log file

I have a logs file looking like: 'User_001','Entered server','[email protected]','2','','','0','YES','0','0',','0','192.168.1.1','192.168.1.2','0','0','0','0','0','0','0','0','0','1','0','','0','0','0','...
Giuseppe Pirlo's user avatar
0 votes
1 answer
48 views

How to capture from regex in bash?

I am running this piece of code so that I can match the branch name with a pattern and create port based on which: nano test.sh #!/usr/bin/env bash branch="3.2.1" re='([0-9]+)\.([0-9]+)\.(...
Amin Ba's user avatar
  • 2,154
0 votes
3 answers
26 views

Does exist more convenient manner to get the svn revision number output from svn log?

please see below : echo "r22543 | foobar | 2016-03-08 17:17:02 +0800 | 1 line" | egrep -o 'r[0-9]+' | egrep -o '[0-9]+' 22543 Does exist more convenient manner to get the svn revision number?
zhuguowei's user avatar
  • 8,349

15 30 50 per page
1
2