Reputation
220
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 6
Newest
 Critic
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
Aug
27
comment Unable to get actual row counts because of Carriage return values:
So how are you supposed to tell the end of a record vs the end of a line? If the file is really only 8 records long, modify the file to get rid of extra line endings.
Aug
26
revised Grep lines but let the first line through
Used sleep command to have things written in correct order.
Aug
26
comment Grep lines but let the first line through
Anonymous edited my post and it does not work for me. df -h | tee >(head -n 1) | grep ^/dev
Aug
13
awarded  Critic
Aug
12
comment File contents created when opened
If you are willing to open a different file, then the different file can be a pipe, and the program would have to be modified to write to the pipe, close the pipe, and loop (in case the file was opened for reading again).
Aug
11
answered Create persistent process without inittab
Aug
11
answered Create persistent process without inittab
Aug
11
comment How can I mount /home in a usb drive and keep the files?
If the computers are networked, then I would suggest sharing the directory and mounting them remotely. Otherwise you are stuck making copies and having issues with synchronization.
Aug
11
comment How can I mount /home in a usb drive and keep the files?
Why not just leave the usb drive mounted?
Aug
11
comment How can I mount /home in a usb drive and keep the files?
If you are unmounting the usb drive, then as far as the OS is concerned, the files do not exist. You can mount the drive somewhere else and copy the files to /home. Changes to /home will not show up on the usb drive.
Jul
1
comment bash scripting and PS1 prompt
Verify the prompt is what you want by echo $PS1 | hd -c. You may want to avoid the color variables and place them inline. This way you can change the double quotes to single quotes and avoid some shell interpretation.
Jun
19
comment Can I find the filesystem a file is going to be installed to?
Yes. Sorry about that. Corrected.
Jun
19
revised Can I find the filesystem a file is going to be installed to?
deleted 2 characters in body
Jun
19
answered Can I find the filesystem a file is going to be installed to?
Jun
10
comment How can I put a bit mask on /dev/zero so that I can get bytes other than zero?
Given your implementation, you could have a symbolic link from from /dev/capbee to /dev/zero, search for /dev/capbee and leave /dev/zero alone. //dev/zero won't bee the same as /dev/zero.
May
13
answered Unix with few packages
Apr
2
awarded  Yearling
Mar
20
comment Redirect script output to /dev/tty1 and also capture output to file
Try : script -c "script -c 'your command /dev/tty1' /tmp/capture "
Mar
20
comment Redirect script output to /dev/tty1 and also capture output to file
Check to see if you have permission to write to the tty. "ls -l /dev/tty1". Fix permission if required.
Mar
17
comment Redirect script output to /dev/tty1 and also capture output to file
Don't redirect to /dev/tty, redirect to /tmp/capture. Then try tail -F /tmp/capture > /dev/tty1 & . Start the tail first in background. and kill when done.