Page MenuHomeFreeBSD

mr.a_lan.ph (mr.a)
User

Projects

User does not belong to any projects.

User Details

User Since
Nov 4 2015, 12:43 PM (255 w, 3 d)

Recent Activity

May 20 2020

mr.a_lan.ph added a comment to P388 String manipulation.
mr.a@razorcrest:~ % uname -ns
FreeBSD razorcrest
mr.a@razorcrest:~ % echo ${SHELL}
/bin/csh
mr.a@razorcrest:~ % sudo -k echo 'passwd:     files nis sss'>/tmp/nsswitch.conf  
mr.a@razorcrest:~ % sudo -k echo 'shadow:     files nis sss'>>/tmp/nsswitch.conf  
mr.a@razorcrest:~ % sudo -k cat /tmp/nsswitch.conf  
passwd:     files nis sss
shadow:     files nis sss
mr.a@razorcrest:~ % sudo -k -E sh -c 'export a=/tmp/nsswitch.conf; cp -fpv "${a}" "${a}".$(date +"%Y%m%d%H%M%S").baka;' sudo -k ex -sc 'g/^\([[:space:]]\)*\(passwd:\|shadow:\)/s/nis[[:space:]]//' -c w -c q /tmp/nsswitch.conf
‘/tmp/nsswitch.conf’ -> ‘/tmp/nsswitch.conf.20200520103634.baka’
May 20 2020, 2:12 PM

May 18 2020

mr.a_lan.ph edited P388 String manipulation.
May 18 2020, 5:57 AM
mr.a_lan.ph added a comment to P388 String manipulation.
I've a problem with 'sh -c' which doesn't seem to honor the '\(' character...
May 18 2020, 5:27 AM
mr.a_lan.ph added a comment to P388 String manipulation.
Works like a charm...
May 18 2020, 3:09 AM
mr.a_lan.ph added a comment to P388 String manipulation.
As suggested...
May 18 2020, 2:43 AM
mr.a_lan.ph created P388 String manipulation.
May 18 2020, 2:16 AM

Nov 4 2015

mr.a_lan.ph edited P86 FreeBSD kernel.
Nov 4 2015, 1:36 PM
mr.a_lan.ph edited P86 FreeBSD kernel.
Nov 4 2015, 1:29 PM