Reputation
828
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 18
Impact
~46k people reached

  • 0 posts edited
  • 0 helpful flags
  • 112 votes cast
Jun
24
awarded  Popular Question
Jan
22
comment install two operating systems on a smartphone
Say for example if Apple decided to port and add android to their phones and they modified their bootloader to be able to choose between the two OS:es during boot, then yes it should be possible. But you could only have one OS running
Sep
30
awarded  Popular Question
Aug
1
awarded  Yearling
Jul
18
awarded  Popular Question
Jul
8
accepted Matching several patterns on one line
Jul
8
comment Matching several patterns on one line
I think that head is running into the same problem as sed. Running tty0tty | head -n 1 doesn't give any output. Tried to add the 'unbuffered' flag to sed, but that did not seem to help. Using unbuffer command made it work though. The hackiness is now over 9000 ;). The line I finally used is read left right < <(unbuffer tty0tty | head -n 1 | sed -e 's/[()<=>]//g' &)
Jul
8
comment Matching several patterns on one line
Neat trick :-). Seems to be almost working. Only problem seems to be that tty0tty have to keep running, that is why I started it as tty0tty &. Seems like sed keeps waiting for more input.
Jul
8
asked Matching several patterns on one line
Jul
2
awarded  Curious
Jun
27
comment How to determine who started a process?
Checking the parent process id might reveal some more info. Try running pstree
Jun
17
awarded  Constituent
Jun
10
awarded  Caucus
Jun
7
awarded  Revival
May
30
awarded  Custodian
May
30
reviewed No Action Needed How to change permissions/owner or delete Downloads folder (owner: root wheel)?
Apr
22
accepted Why does to order of the parameters affect the files found by `find`?
Apr
22
comment Why does to order of the parameters affect the files found by `find`?
Huh, that would also explain why giving -print0 as the first parameter lists all the files. Makes sense, but it's also a bit unexpected. Thanks a lot :)
Apr
22
asked Why does to order of the parameters affect the files found by `find`?
Apr
19
awarded  Popular Question