Size: a a a

Regular Expressions

2021 November 09

M

Mr. Robot in Regular Expressions
I think it's because I'm on my cell phone
источник

IP

Ivan Petrov in Regular Expressions
(?<=\s)\d+\s\d{4}\-\d{2}\-\d{2}\s\d{1,2}\:\d{2}\s.+$
источник

Лс

Лень с Самосознанием... in Regular Expressions
Nope, you're forgetting that ls, which is used to retrieve information, mangles the file names a lot, so that "they look nice".
That includes unicode characters, spaces, and a lot more.
But your regex isn't ready to withstand even a single space in the name
источник

Лс

Лень с Самосознанием... in Regular Expressions
Yep, I have developed fzfm using pure bash. Why?
источник

M

Mr. Robot in Regular Expressions
not going, how do i represent line break in regex?
источник

IP

Ivan Petrov in Regular Expressions
\n is a new line
\r is a carriage return
источник

Лс

Лень с Самосознанием... in Regular Expressions
So, you're refusing the help, am I reading that right?
источник

M

Mr. Robot in Regular Expressions
because you seem to understand the subject
источник

M

Mr. Robot in Regular Expressions
Never, must be the translator
источник

IP

Ivan Petrov in Regular Expressions
Using \n causes the absence of the last one in the list
источник

Лс

Лень с Самосознанием... in Regular Expressions
You don't need to develop a file manager to understand file structure and basic system inner workings
источник

M

Mr. Robot in Regular Expressions
the problem was in the application I was using to test the regex, it wasn't recognizing the command, I used another one and it worked lol 😂 Thank you very much
источник

M

Mr. Robot in Regular Expressions
источник

M

Mr. Robot in Regular Expressions
источник

IP

Ivan Petrov in Regular Expressions
No problem!
And else,

stat -c "%s %y %n" *
источник

IP

Ivan Petrov in Regular Expressions
This is how you may obtain info you need directly from console line
источник

IP

Ivan Petrov in Regular Expressions
Or even better one to remove the timezone and milliseconds:
stat -c "%s %.19z %n" *
источник

M

Mr. Robot in Regular Expressions
beauty bro, one more question are you also russian?
источник

Лс

Лень с Самосознанием... in Regular Expressions
Fuck this shit, I'm completely out.
источник

Лс

Лень с Самосознанием... in Regular Expressions
All of us
источник