Hy,
I want to display this
select ID from table where IDCOMMANDE = '123';
with awk
my command is :
grep "COMMANDE" $FILE | awk -F";" '{ print "select ID from table where IDCOMMANDE = "$8";"}'
this command display that
select * from table where ID = 123;
how can i display select ID from...
Hi,
i have an error when i want to compare ${DC} to $1
#!/bin/ksh
DC=7
cat file | nawk -F \; '
{if (NF == 3) printf "'${VAL1}';'${VAL2}';'${VAL3}';\n" ;
else
if (NF == 7 && $5 == 1 && ${DC} => $1) printf $1";"$2";"$3";"$4";'$5';"$6";\
n" ;
when i replace ${DC} by the value 7, it's ok...
Thank you
I want to replace "Aborted" by "Vu" in files *.log
It's ok with this command
find . -type f -name '*.log' -exec sed -i 's/Aborted/Vu/g' '{}' \;
Hello,
I want to find in my directory files and deplace it in other directory but I not find files where are in my directory of my directory :
find /test -type f -mtime +10 -exec mv '{}' /appl2/arch ';'
the directory test have a directory test1 with files
and my command move all files
what can...
I want to use Entreprise manager but i don't have SQL enterprise manager.msc in the directory sql server/80/Tools/binn/
It's the install is not ok ?
what can i do ???
I create a login who execute a shell script in tne connexion (in .profile) and the session is killed (kill -9 0)
I want the login don't execute ^C when the shell is executing
What can i do ?
I want to do a shell who scan my server with uptime
and when uptime load average > 4, i want to write
the result of ps aux|head -5 in a file
for ex :
uptime
11:36 up 4 days, 12:26, 51 users, load average: 1.40, 1.03, 0.84
if uptime | awk -F" " '{print $10}' > 4 then
ps aux|head -5 > log
how to send a variable since a script shell to an instruction sed
ex :
var1=test1
var2=test2
sed '1,$s/$var1/$var2/g'
this expression don't work in my script
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.