Reputation
15,757
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
17 47
Newest
 Nice Answer
Impact
~1.1m people reached

Dec
3
comment How do I convert Linux man pages to HTML without using groff?
try finding and fixing the source of the warning: can't find font `b' message - that may be the cause as the png files created tend to be just text in graphical format. possibly a missing font package that needs to be installed.
Dec
3
comment Can I see always time in console?
why waste valuable vertical screen space in your terminal when most window managers and desktop environments have panels or similar and clock apps for those panels?
Dec
3
comment How do I convert Linux man pages to HTML without using groff?
why not submit a bug report to sabayon and get them to fix their bugs?
Dec
3
comment Unable to load the kernel module 'nvidia.ko'
what makes you think an nvidia driver is appropriate for an ATI (aka AMD) GPU? That will never be the case, nvidia and ATI/AMD are competitors and do each other no favours. The ES1000 is an old GPU without 3D support, and AFAICT isn't supported by (and doesn't need) the radeon driver. See askubuntu.com/a/381651/75909
Dec
3
comment Minicom and kermit,where is my fault?
Does the VM have a network interface? does it have NFS client software? if so, you could create an NFS export somewhere (on the VM's host machine, perhaps) and mount it on the VM. Even without NFS, it might have an ftp client or possibly even a http client you could use to download the file over the network.
Dec
2
comment Substitute Column With Result of Command
if you added a small (10 lines or so) sample of input and expected output to your question, could probably fix the cdrtoip function to work with your data.
Dec
2
comment How to know log the full script name executed by user?
1. "$@" works in ksh. 2. You can't easily nest backticks and they mess up quoting. See stackoverflow.com/questions/9449778/…
Dec
2
answered Btrfs subvolume UUID clash
Dec
2
comment How to know log the full script name executed by user?
1. permissions/ownership may be a problem if multiple users write to the same log file. pre-create the log file with either 660, 664 or 666 perms. 2. try echo $(date) $WHOAMI ran this script $NAME with options: "$@" >>> scripts.log - "$@" lists all command-line options. and use $() rather than backticks...backticks are deprecated and mess up quoting.
Dec
2
comment Copy content from files X and Y to create file XY but XY content is all lowercase
that was my point. muru was railing against an appropriate use of cat partly because his belief that UUOC exists blinds him to the fact that cat has its uses. IMO even if a particular instance of using cat does happen to be useless, there's little point in complaining about it - cat is also useful as a placeholder for any command or pipeline of commands in examples. And if using cat makes it easier for someone to understand then it's certainly not useless. The point here is learning, not pedantry. there are plenty of things worth being pedantic about, the occasional UUOC isn't one of them
Dec
2
comment How to use grep to extract file names at end of lines?
you need to use double-quotes rather than single-quotes if you want to embed a variable into something like a sed script. Try sed -n "/bv90.*$DATE.*\.CCD$/ s/^.*$DATE ..:.. //p" log file > u.txt. btw, the ..:.. matches the HH:MM, and a space is needed between that and the Mon DD
Dec
2
comment Substitute Column With Result of Command
that's odd. it prints the IPs normally for me. hmmm, maybe not surprising if the 'cdr' decimal numbers came from a cisco device - they use reversed IPs in a lot of places.
Dec
2
awarded  Strunk & White
Dec
2
comment Copy content from files X and Y to create file XY but XY content is all lowercase
when you believe that there is such a thing as UUOC then all cats are useless..
Dec
2
revised isc-dhcp-server in not being started in ubuntu 14.04
fixed formatting
Dec
2
comment Exit status in bash script
That compares ONLY the second field of /etc/services against the port regex, preventing any possibility of spurious matches from any comments on the input lines. that's not a big risk with this particular input file but as a general rule if you know what you're searching for is in a particular field, it's good practice to restrict the search to just that field.
Dec
2
answered Managing packages, directories and PATH in Unix (OSX)
Dec
2
revised Exit status in bash script
added && and || alternative to if/then/else
Dec
2
revised Exit status in bash script
added if/then/else examples
Dec
2
comment Exit status in bash script
You can use that awk script with if. i'll edit my answer to show an example.