3
Multiple related resources in chef recipeview story

http://serverfault.com – I need to run some commands depending on a result of previous execution, which again depends on some package being installed. On the first run, I'd expect something like: install package "XXX" get output from XXX for each line in output: if missing, use XXX to add if unknown, use XXX to delete The problem is that when I do the logic in top level of the recipe, then the get output part (HowTos)

11
sed deleteview story

http://www.unix.com – I am not able to analyze the below code.. What I expected is that DELETED will be replaced with the first field in every line.But after giving a try, the output was different. Can anyone pleas analyze and explain the code in detail? Many thanks... Code: $ sed 's/[a-zA-Z]* /DELETED /g' g1.txt > g4.txt $ $ more g1.txt giri sripathi sohan meka  madhave durga ram baba siva venkat sati (HowTos)

6
How to read from specific line number in shell script?view story

http://www.unix.com – I have a text file which is having 30000 lines in it. I have to create a xml file for each 10000 lines until all the lines in the text files are written. Also please help how can i get number of lines in the text file in a shell variable? (HowTos)

3
variable%pattern operation within awkview story

http://www.unix.com – Hello; I have: Code: ll | grep -v ^d | awk '{print $9}' rcx_access_report_fid.txt rcx_access_report_hsi.txt rcx_access_report_mmm.txt rcx_access_report_qsc.txt I want to get: Code: rcx_access_report_fid.txt rcx_access_report_hsi rcx_access_report_mmm rcx_access_report_qsc But when I try: Code: ll | grep -v ^d | awk '{print ${9%.*}}' awk: cmd. line:1: {print ${9%.*}} awk: cmd. (HowTos)

11
BASH: Newline or HR after long command outputview story

http://serverfault.com – Is there any way to configure Bash to print a newline or horizontal line after commands that provided more than N lines of output? For instance, after a simple cd I don't need a newline or horizontal line, but after a long cat a visual indication of the end of each command's output would be great when I am comparing the output of various commands. Thanks. (HowTos)

3
[all variants] Hibernation not working on Asus Laptopview story

http://ubuntuforums.org – I have Asus U45JC laptop, and hibernation doesn't work. I've installed uswusp to check the progress, and they checked image size, they checked free swap, they said that they saved the snapshot image, they referred the compression rate, something near 0.3 and the last line said S| and it stopped. After that, the laptop froze displaying lines described above, and only fan span. (Hardware)

9
perl questionview story

http://www.unix.com – Hi guys, I have a file with the following line as data: Quote: 1843 2008 2214 2215 2259 2265 2266 2295 2350 243 2529 2635 270 2714 2845 2851 2863 2866 2870 2874 2880 2881 3016 3054 3068 Does anyone know of a way to assign each number to an array in perl , so each array element would hold single number? I have tried to use "while loop&quot (HowTos)

8
Korn Script to connect and query oracle databaseview story

http://www.unix.com – I've been sent the following script to finish. It's supposed to connect to an oracle database, query it, and send an email if the query result value is one or more. Currently it isn't connecting properly, just giving the following error: ERROR: ORA-01017: invalid username/password; logon denied SP2-0306: Invalid option. (HowTos)

5
nmap script needed to output text into csv formatview story

http://unix.stackexchange.com – ultimately I am looking to insert some info into a database. So I'm trying to output a file from something (probably nmap) that is formatted like this: 10.1.150.1,Up,1/3/2012,host.domain.lan 10.1.150.2,Down,1,3/2012,host2.domain.lan I do not HAVE to get the date from the nmap scan but it would be helpful. I can add it when I insert the data into the DB. (HowTos)

14
Adding custom DNS server for pppd client connection?view story

http://unix.stackexchange.com – I'm trying to setup dnsmasq to accelerate DNS resolving , but since i use a PPPoE connection , there're both dns server provided by ISP , and the 127.0.0.1. So how can i place the local dns server as the first line in /etc/resolv.conf automatically ? And please don't let me use a static dns server configuration .. Thanks ! (HowTos)