1
Handle special characters in awk -Fview story

http://www.unix.com – Hello Folks, Need to bisect strings based on a subset. Below works good. Code: echo /a/b/c/d | awk -F"/c/d$" '{print $1}' /a/b However, it goes awry with special characters. Code: echo /a/b/c+/d | awk -F"/c+/d$" '{print $1}' /a/b/c+/d Desired output: Code: /a/b Escaping the special characters didn't help as well Code: echo "/a/b/c\+/d" | awk -F (HowTos)

1
sed one liner to Delete blank lines - Help requiredview story

http://www.unix.com – Hi, Code: cat test.txt BlankLine BlankLine BlankLine BlankLine ello hi helo BlankLine BlankLine heylo BlankLine BlankLine BlankLine done BlankLine BlankLine BlankLine The above is the content of the file.(blank lines in between lines,at the begining of file and at the end of the file) I am applying the following sed command Code: sed '/^$/N;/\n$/D' test.txt the output is Code: (HowTos)

1
sed one Liner option -eview story

http://www.unix.com – Hi, I have the following command.(Delete all trailing blank lines at the end of a file.) Code: sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' I don't understand the logic of this command and also I don't understand why -e is used. Can you please let me know the logic of this command and why three -e are used Famous Sed One-Liners Explained, Part III: Selective Deletion of Certain Lines and Spec (HowTos)

1
How to use Group Policy to control local administration access (LOCAL ONLY)view story

http://serverfault.com – At the company I work for, we have about 75 computer users. We have a Microsoft Domain Controller in our server environment (MS Server 2012) with Active Directory. When users need to install software, they are prompted in Windows for an Administrative username and password. (HowTos)

1
system halt twice a weekview story

http://serverfault.com – My system stop responding almost twice a week. (HowTos)

1
Alsamixer doesn't budge [Intel HDMI sound problem]view story

https://bbs.archlinux.org – I was following the ALSA arch wiki for getting sound working, and when I got to the step where I should go into alsamixer, I (think I) successfully unmuted it, but when I hold up, or plus or even page up, the volume doesn't increase.This is what alsamixer looks like. Even if I select PDIF 1, it still doesn't budge. (HowTos)

1
Wake on Lan - Install a client on a Linux machineview story

http://serverfault.com – this might seem obvious or stupid to somebody, but I can't find anything that helps me yet, besides the fact that I'm not a Linux user. I've got 2 NAS boxes (Iomega, now Lenovo) IX4-200D and PX6-300D. They're always on. I've also got a computer already set to start up with a magic packet (works as expected). (HowTos)

1
How to decide on VPS good defaults for PHP and Wordpress when it comes to memory?view story

http://serverfault.com – I have (only) 512MB to spare. The only thing running on my VPS is PHP/MySQL and on top of it Wordpress. No mail server or any other application, just Wordpress and LAMP stack. How to decide how much memory to give to PHP and Wordpress? Right now PHP is allowed to have 128MB, how much is safe amount to increase it? I've tried to Google the question but never really found any answers. (HowTos)

1
Unable to connect via RDP to Windows Server instance on AWS EC2view story

http://serverfault.com – Below is a link to the instructions that allow you to connect to your AWS EC2 virtual private server, for an instance based on a Windows Server template during the AWS EC2 instance wizard. So far, I've chosen three different instance types that say "free tier eligible". (HowTos)

1
Kernel Upgradeview story

http://www.unix.com – Dear All , I want upgrade my kernel version from kernel-2.6.18-164.el5 to kernel-2.6.18-199.el5 . We have RED HAT Linux Server Red Hat Enterprise Linux Server release 5.4 (Tikanga). Kindly let me know where we can download this particular RPM. if we want to download from RHN , pl let me know what and all is needed. Thanks and Regards , Rj (HowTos)

1
Printer found but no pages are printed outview story

https://bbs.archlinux.org – Hi,I have Arch installed on a PC which is itself connected to a router (livebox play) via ethernet. I also have a printer (Brother DCP-9020CDW) connected to the same router via wireless connection.I installed the CUPS package and the  Brother driver provided through the AUR. (HowTos)

1
DUP packets in Virtualboxview story

http://serverfault.com – Im using Oracle VirtualBox 4.3.26. (HowTos)