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 (237 w, 6 d)

Recent Activity

Wed, May 20

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’

Wed, May 20, 2:12 PM

Mon, May 18

mr.a_lan.ph edited P388 String manipulation.
Mon, May 18, 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...
Mon, May 18, 5:27 AM
mr.a_lan.ph added a comment to P388 String manipulation.
Works like a charm...
Mon, May 18, 3:09 AM
mr.a_lan.ph added a comment to P388 String manipulation.

As suggested...

Mon, May 18, 2:43 AM
mr.a_lan.ph created P388 String manipulation.
Mon, May 18, 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