Try running this script and then log out and in again.#!/bin/sh
DRIVER=/usr/lib/xorg/modules/drivers/fglrx_drv.so
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
doneIf that doesn't work, there's plenty of thr
Hello to all,
May be some expert could help me.
I have the below awk script that works correctly in Cygwin:
Code:
awk -F\" 'FNR==NR && FNR>1 {gsub(",","",$5); N[$2]=$5;next}
$10 in N && FNR>1 {
Y[$10]=$8
Z[$10]=(N[$10]==$8)?"Yes:"No";
}
END{
for(k in N) {print k,Y[k],N[k],Z[k]?Z[k]:"Not_Found"}
}' file2 file1
But when
I made one script in shell, but it is not running in my server. So i am trying to make perl for the same.
I have csv files that has 80-100 columns , I want to convert to sql script files.1st line is field name.
Code:
awk -F"," 'BEGIN{OFS=","} {print "INSERT INTO THEL(id,b,c) value("NR,$1,$2")"}'
How to make script that detect number of fields so i don't need to edit manually for each files.
thanks you
Quote:
rkesharda,G-00009,1,201206,aal-rrb-cng-cx-01,2.3,1/1 id 2321;544 pppoe 1511,10326088,ACTIVE
when i used to run this command
Code:
A2=`cat temp |awk -F "," '{print $7}' | awk -F ";" '{print $1}'`
give the requited O/P
Quote:
1/1 id 2321
but when i use this comm
Hello all, I've looked all over but only found a few explanations for Ubuntu users that did not apply for Fedora.. This is the following script I need to run at boot but without requiring a password:
#!/bin/bash
su -c root 'echo 0 > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness'
I tried replacing su with sudo, and it says command not found.
I'm trying to install a program called YAPH (Yet Another Proxy Hunter).
Hi,
I don't script often enough to know how to do this, and I can't seem to find a right example online. I have a csv output from an old, old system (Win2K???), from which I want to extract only certain fields.
How do I insert a line of text into a specific location in a text file? I'm trying to write a script that installs itself and a few other scripts that run at startup.