« first day (489 days earlier)      last day (2583 days later) » 

10:21 AM
@Queen k
 
 
2 hours later…
@Queen k
 
12:42 PM
Hello guys, I saw a regex with sed of the form sed '([0-9]|\\.)*' what does the '\\.' match?
 
@newbie a literal backslash followed by any character other than newline
a common way to handle backslash escapes; if something is preceded by a backslash, it can be anything
so "1234\"1243" is matched as a single double-quoted string with something like 's/"([0-9|\\.)*"/"foo"/'
(though your example fails to be a valid sed script on multiple counts)
 
ah thanks, i was thinking that it was to match newline \n carriage return \r, tabs \t etc and escaping them
(I mean, \\. in order to match \t, \n, \r, \h etc)
 
well yeah those are escapes too
so 123\t456 is similarly accepted
 
1:01 PM
now it's clear thanks
 
@newbie you're welcome
 
@Queen k
 
 
2 hours later…
 
2 hours later…
5:52 PM
Hi @tripleee, thanks for making me aware of this place :-)
 
 
1 hour later…
6:55 PM
hey anyone knows the equivalent to strace for mac osx
 
@Smple_V ktrace followed by kdump.
See the manual for those two.
 
awsome @Kusalananda can you show a sample flow
 
ktrace ls, followed by kdump to see the trace.
 
am sorry still catching up with unix i want to remove file1.txt and want to see what goes on behind the scene
like i can use ktrace rm file2.txt
and then kdump file2.txt??
@k
@Kusalananda i am unable to get any manual on ktrace using man ktrace ....does it mean my osx doesnt support it ?
 
@Smple_V No, ktrace rm file creates a binary file in the current directory called something like ktrace.out. Running kdump without any argument will parse that file and show the result of the trace.
I'm not by a Mac at the moment so can't give details. It's strange that you can't get to the manual page.
 
7:36 PM
@Smple_V Scrap all that. I booted my macOS machine, and it doesn't have ktrace, I was confused and thought it had ktrace and kdump like all the other BSDs...
Sorry for the noise.
 
7:59 PM
@Kusalananda np mate so anyother that would wrk ? mean instead of strace
 

« first day (489 days earlier)      last day (2583 days later) »