Reputation
960
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 4 20
Impact
~71k people reached

  • 0 posts edited
  • 0 helpful flags
  • 101 votes cast
Aug
7
comment Scripting batch text mangling
So for general "cut this text here, paste it there", awk is the puppy to use? You got any good references for learning about it? All the tutorials I could find only cover trivial 1-liners, and don't go into the syntax for larger blocks of code...
Aug
7
comment Scripting batch text mangling
@Peter.O All good questions. It's one particular example of something I needed to do. The lines will always be foo followed by bar followed by baz, possibly with intervening lines that I don't care about. foo should always become the first argument to Magic(), and so on.
Aug
6
asked Scripting batch text mangling
Jul
31
awarded  Nice Question
Jul
16
answered Redirect stdin for multiple shell functions
Jul
16
asked Redirect stdin for multiple shell functions
Jun
26
awarded  Notable Question
Jun
24
comment Run top instead of getty
@JdeBP The systemd documentation says it only tries to auto-launch getty if the terminal is otherwise unused. Presumably starting top prevents the auto-launch of getty. Works on my OpenSUSE box.
Jun
23
comment Run top instead of getty
Worked perfectly first time. Well done!
Jun
23
accepted Run top instead of getty
Jun
23
comment Run top instead of getty
Consider, for example, this: unix.stackexchange.com/questions/56531/… which explains how to adjust the number of VTs which auto-launch getty.
Jun
23
asked Run top instead of getty
Jun
15
awarded  Popular Question
Apr
1
comment Why can X11 access the video card?
Some very interesting information in the linked article. It still doesn't really explain how a X11 driver, in user mode, is doing stuff like adjusting PCI memory mappings and so forth. I thought only the kernel can do that...
Apr
1
asked Why can X11 access the video card?
Mar
20
awarded  Popular Question
Mar
18
accepted Reading from sysfs returns EINVAL
Mar
18
comment Reading from sysfs returns EINVAL
So if the device is powered off, you can "expect" this file to not work? (Now I'm wondering why the heck the kernel doesn't just not display the file, or at least assume false, rather than doing something very strange like this...) You could probably post that as an actual answer.
Mar
18
asked Reading from sysfs returns EINVAL
Mar
11
awarded  Popular Question