Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. loloman

    simple quote in awk print

    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...
  2. loloman

    shell and nawk : parameters

    It's ok Thank you
  3. loloman

    shell and nawk : parameters

    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...
  4. loloman

    how to search a value in multiple files and substitute it ?

    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' '{}' \;
  5. loloman

    how to search a value in multiple files and substitute it ?

    I want to find a string in multiple files and substitute it with shell command grep value *.log ....
  6. loloman

    Command Find

    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...
  7. loloman

    Free tool to browse database

    Hello, I use Orasnap, it's a web interface for oracle 7 8 9
  8. loloman

    MMC and sql server

    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 ???
  9. loloman

    how to deactive ^C in shell

    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 ?
  10. loloman

    Uptime and ps aux|head -5

    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
  11. loloman

    Command test in shell with or

    Hi, how can i write in shell that : If VAR # "valeur" or VAR # "valeur1" or VAR # "valeur2" then .... fi
  12. loloman

    date in .bat

    how to transform date/t and time/t in .bat ex : for date : 12/10/2003 in 12102003 for time 12:33:00 in 123300
  13. loloman

    SED and variable in a script ksh

    it's ok think you
  14. loloman

    SED and variable in a script ksh

    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
  15. loloman

    how to trap a abort connexion sqlplus with Perl ?

    I want to trap a retour code (bad connexion for exemple to oracle with sqlplus) and kill the connexion after a timer limit with perl
  16. loloman

    awk and df

    I want to display on unix the command df with awk #df Filesystem Total kbytes kbytes % /dev/rz2a 32023 16823 11998 58% / /dev/rz2g 885222 229492 567208 29% /usr #df |awk '{print $6 ";" $5}' ;% Mounted;used /;58% /usr;29% I don't want ;%...

Part and Inventory Search

Back
Top