1,817 Topics
| |
if i m not clear in the previous post: i have a dat file with two columns. and a database table (oracle).One field of that file nd table r same. i want to match each value of tht column of that table with that of file.pick up the correspionding other … | |
hi i m very new to shell script. my prob: i have a dat file and a database table(oracle). one column of that table and dat file is same. i want to replace another column of that table matching the value of the column of the table with that of … | |
[COLOR=#000000]Can any1 please help me...[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]i'm really lost in using bash shell scripting...[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]and i got to hand this up on monday...[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]please anyone teach me how to do this assignment... [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Please use basic things because i just learn the program … | |
I'm engaging in a little petty accelleration :P I just wondered if anyone knows a way to make a shell script simpulate keys typed on a keyboard? E.G. I press my xmodmap xbindkeys'd shortcut, it calls 'tag.sh p' and tag.sh somehow sends <p></p>(four right arrow keys) to the current window... … | |
Hello Everyone, I need help on a part of the script below.The purpose is to accept some filenames as command line arguments and count the number of characters,words,lines in each file, and the total of each of these 3 attributes. My output should look like this... [COLOR="Blue"]file 1 stats: Number … | |
Hi, I am new to shell scripting.So someone please do help me out.I have stored two dates in the given format below. cur_time=`date '+ %b%e%T'` time=`ls -lu f1 | cut -d "" -f6` I hope both these will show the dates in this format. for eg. Dec 23 10:10 Now … | |
i look fo it, but nothing found: i have a variable and want the reverse one example var1="test" var2 will be "tset" under linux shell i have no idea how to do this | |
Hi, Inputfile.log TDR 30 /data/data2/log1 TDRM 60 /data/data2/log2 # This command will match both lines $ grep ^TDR Inputfile.log # This command will match lines with TDR word appear anywhere in the text (but not TDRM) $ egrep -w TDR Inputfile.log How can I just match TDR that appears only … | |
Hello I have a var="STEPHEN,GRIFFITHS" how can i check to see if a variable contains a certain character, ie a comma (,) Thanks | |
Hi all... I have just started scripting in KShell and I have this code that extracts information out of a database under different fields. Now, if I further want to refine the data that is being extracted, say matching with a particular term under a particular field, can you please … | |
Hi Everyone, I need your assistance to write this script. The script should take an argument of a file. The script should be able to determine what permissions the owner, group and everybody has of the file passed in. The ouput should br displayed similar to this. READ WRITE EXEXCUTE … | |
Hi, Yesterday a friend of mine asked me about the use of $ at the end of the crontab command. His query is something like this. [B]15 3 * * * command [COLOR=red]$[/COLOR][/B] Can someone please help me with the use of $ at the end of this crontab command … | |
Hello everybody, I've got a small problem I need the following string to be split into it's parts: [code] ftp://user:pass@host/path [/code] the result should be smth like: [code] $USER = user $PASS = pass $HOST = host $PATH = path [/code] Somebody has help for me? Would be nice Alternative … | |
i need some ppl help me in the commmand for connect to my serial port...i face this problem a few days ago but stil unabe to get the solution. | |
Hi everyone, Sorry to be a bother but everything programming seems almost foreign to me. Im trying to write a shell script (using 'sed' and 'tr' etc.) which replaces a string of text with another. That is the easy part. The part Im stuck with is making it case insensitive. … | |
Hello all I am trying to create a script to do the following: I have a file which contains the following STEPHEN;CHRIS:PETER>JOHN| What i need to do is read this file in and be able to seperate the above names into variables based on the delims. ie Script something like … | |
Hi, I am new in shell script and I road this script, but it does not give the output I want. The output show look like this: Instance on [COLOR=Red]fac1[/COLOR] [COLOR=Red]inst1 [/COLOR]instance Instance on [COLOR=Red]fac2 inst2[/COLOR] instance Instance on [COLOR=Red]fac3[/COLOR] [COLOR=Red]inst3[/COLOR] instance Here is the script: [code]INSTID="inst1 inst2 inst3" FANCID="fac1 … | |
Can any1 suggest me, how to implement the "wc" word counting utility through bash shell script, i.e how to design a script working similar to "wc" command ??? Need it desperately, with all relevant options like -l, -c, -w ... | |
Hi Guys, I'm quite new to shell scripting. I would like to create a script to the following: 1. dbf 2. Print "Filesystem" "kbytes" "used" "avail" "%used" "Mounted on" values where %used >= 80%. 3. email output to user([EMAIL="you@email.com"]you@email.com[/EMAIL]) 4. The script should run once a day via cron every … | |
Can anyone help me in implementing a program which contains a routine which is similar to getpid() in functionality, but there should not be use of getpid() in the program. Please reply as soon as possible. | |
Greetings, I am trying to create a script that does 2 things. I imagine this can be done in 2 or 3 lines. 1. ssh to a server 2. execute the passwd command here is what I am trying - ssh -l username server passwd Once the script ssh's to … | |
hi! My boss told me that the script should DISPLAY ERROR if FAILED_LOGIN_ATTEMPTS is greater than 3... HOW should I do THis? PLease talk to me like im moron, im just a beginner... or please give a sample code to do this.. thanx a lot... HERE's THE SCRIPT: export ORACLE_SID=ohkrm92 … | |
I have an options file of the following format [code] option1 = value1 option2 = value2 ..... ; variable number of options ..... page_size= pagesize1 ;Note there is no space between page_size and = page_size= pagesize2 page_size= pagesize3 [/code] During a regression test I want to extract the values for … | |
Hello everyone, I am a beginner to shell script . I had to modify the following script and i get the following errors : sag.sh[11]: SAG: not found mv: cannot create /sag_0609131449.txt :Permission denied #!/bin/ksh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/home/oracle/app/oracle/product/8.1.7/lib export LD_LIBRARY_PATH export ORACLE_HOME=/export/home/oracle/app/oracle/product/8.1.7 export STOCK=/export/home/oracle/app/oracle/product/8.1.7/bin export ENT=/home/atw11w99/ent/uc5 #SAG =$SAG:/home/atw11w99/ent/uc5/sag SAG =/home/atw11w99/ent/uc5/sag export SAG … | |
Hi all, Can anyone shed some light as to why this is not working? for i in `cat wordlist.txt | dos2unix | sed -e 's/ *$//'` do sed -e 's@$i@<a href=http://www.domain.com>$i</a>@g' article.txt done I've also tried: perl -pi -e 's@$i@<a href=http://www.domain.com>$i</a>@g' $file The worlist.txt file consist of words one line … | |
I am new to scripting I want to parse a string in a loop eg A:B:C:D E:F:G:H and put them in different variable attr1 = A attr2 = B attr3 = C attr4 = D . . /* do processing with attr1, attr2, attr3 and attr4 */ then go to … | |
Greetings, Hey guys, I am trying to make a shell script that will scan for a certain 5 lines of text in a file, modify it by adding two lines in the middle and replacing that section of text in the file. For example read rc.conf for: Line1 Line2 Line3 … | |
Greetings Guys, I am currently creating a frontend for a dropable application in Mac OS, for the backend I am using sh/bash. Currently I have a for look checking to see if it a directory, however I have been unable to find a way to check and see if a … | |
Hi I am new to Linux and shell scripting. I have made a script 'script1.sh' in a directory : /root/ansh/scripts I want to invoke this script from any other directory . I understand that for doing this I'll have to set the path of the script in some global variable. … | |
Hi!, I'm kinda new to shell scripting, Here's a problem that I have faced and dunno how to solve: First, I want my script to rename the files stored in a .txt file line by line(there's no pattern that I can use with mv, so I want mv to deal … |
The End.