Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
8
Newest
 Critic
Impact
~498 people reached

22h
comment How to print the name of missing files in a folder?
You don't really need the minutes in the list. The second brace expansion could just be .{00,06,12,18}00..
1d
comment How to print the name of missing files in a folder?
The concept is the one I converged on as well, but please note that very few Julian months have 30 days.
Jul
10
comment How do you know you are on the last line when looping through a file?
You could wc -l initially to get the length of the file and use that as the last row number.
Jul
2
comment Truncate the third column until given strings
I think you meant ...sub(/.*PT~/,....
Jun
29
awarded  Critic
Mar
15
awarded  Scholar
Mar
15
accepted Why is grep searching more than the files I want with asterisk?
Mar
14
awarded  Teacher
Mar
13
comment Why is grep searching more than the files I want with asterisk?
It's only 34 minutes old. Let's be reasonable here.
Mar
13
answered Why is grep searching more than the files I want with asterisk?
Mar
13
awarded  Commentator
Mar
13
comment Why is grep searching more than the files I want with asterisk?
There's the bug. I was fooled because it looked like it was recognizing the server names, but it was just grabbing them all as you say. Some "s should fix this!
Mar
13
revised Why is grep searching more than the files I want with asterisk?
Included more information, previously obscured.
Mar
13
comment Why is grep searching more than the files I want with asterisk?
I've just confirmed that there is no space.
Mar
13
asked Why is grep searching more than the files I want with asterisk?
Mar
4
answered How to grep over a variable
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
A lot of filtering, pattern matching, exclusion, etc. happens on the (very large chunk of the) file system where this runs before it gets to this point. Looking back to see what made it to this point in the code and wasn't deleted would be almost as complex as running the script itself. Frankly, that is the reason I want this error message. Also, the files and directories present are likely to change daily.
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
My problem #2 is that it does not return the prompt message. roaima explained why, but I would like an alternative that doesn't produce side effects.
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
Replacing that line with find... increased the overall running time of the script by about 50%. This might be acceptable but I would prefer to do better.
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
@Archemar The desired result is to inform and not delete when it encounters problematic files. rm -rf will ignore them.