1,891 Topics

Member Avatar for
Member Avatar for bucci

hi experts, i'm new on scripting on sun solaris 8 sparc, need some advices. i have some data in a file like : 20061221 163826.485 20061221 163925.144 058.659 6123456789012 00000E8A 047 08 002 465 00010022 510105642138069 20061221 163915.163 20061221 163925.336 010.173 6123456789012 00000F4F 037 02 002 999 00010022 510103242202784 20061221 …

Member Avatar for jim mcnamara
0
149
Member Avatar for amitc

hey friends, I m in a process of automating Sudo test plan, where i need to invoke another shell within a shell automatically, then need to append a line into that script in sub-shell, then save it and quit from it..all automatically. I m able to do evrything but not …

Member Avatar for ghostdog74
0
120
Member Avatar for googlybear

Hi everyone, I am not really a scripter by nature but now have the need to create one that handles sequential numbering. Basically I need the script to create a sequential number everytime its run. I dont expect anyone to tell me how to do it as i want to …

Member Avatar for googlybear
0
102
Member Avatar for sgriffiths

Hello I have some files with the date included in the filename the format is limited_file_11012007.dat so this is the 11th January 2007 I have numerous files eg limited_file_23012006.dat limited_file_02122005.dat limited_file_23012006.dat limited_file_31032006.dat I want to pick the file that is the closet day after today, ie todays date would be …

Member Avatar for pty
0
93
Member Avatar for lastkey

Hi, I wan tto use 2 variables at same time in single loop. Like [I]for i in vs01a vs01b for k in 1 2 do rsh [COLOR=Red]$i[/COLOR] echo 'tail -20 /opt/oracle/admin/+ASM/bdump/alert_+ASM[COLOR=Red]$k[/COLOR].log' >> VS_logs.txt[/I] how to do it. because for vso1a it's ASM1.log whereas for vs01b it's ASM2.log. help me!!

Member Avatar for lastkey
0
122
Member Avatar for jackjill

Hi all, i'm new in linux environment and have a v. tough task. Please help me how to initiate it. give me some expample scripts.. the prob def is : * i am trying to write a full-screen utility, that displays the permissions of a directory and all the directories …

Member Avatar for jim mcnamara
0
99
Member Avatar for sseenu79

Hi Unix Gurus, I have written a shell script to unfreeze all frozen media in NetBackup. Here is the script written on HP-UX using ksh: *********************************************** set -x cd $HOME rm -f frozentest rm -f mediaserver cd /usr/openv/netbackup/bin/admincmd pbrun ./bpmedialist -summary | grep FROZEN | awk '{print $1 $2}' | …

0
63
Member Avatar for verkiles

Hi , Am new to shell scripting. I wanted to change user using shell script and i just dont know to do it. Thanks!,

Member Avatar for jim mcnamara
0
68
Member Avatar for hillol

Hi im a new one to shellscripting plz see the following code snippet var1=`sqlplus -S eot/eot <<- ! select ID from testhil1; quit !` echo $var1>ron cat ron vari=" " while read line do var2=` echo $line|wc -w |cut -f 1 ` vari=` echo $line ` done<"ron" echo $var2 echo …

0
68
Member Avatar for rchadhaney

Hello everyone. I'm a newbie in shell scripts. I'm trying to write a simple script that will archive a file from one directory to another directory I'm using sqlplus to generate the correct file name. The problem is when I try to use the paremeter from sqlplus it adds a …

Member Avatar for rchadhaney
0
97
Member Avatar for akashag

hi , can ne one help wit it. I need to write a shell script which gives the process ids of all the process of previous day(if running or hung).

0
62
Member Avatar for bmrout007

Hi, i have a file named file1 file1 contains ABCDabcdABCDabcdABCDabcd i want a shell script that will show the contents of file as ABCDabcd ABCDabcd ABCDabcd that means when a capital A is found it will break into another line thanks

0
66
Member Avatar for hillol

hi, can anyone help me how to redirect sql query result to a file in shell scripting using sqlplus. Is the below code snippet corrct: sqlplus -s username/password <<- ! select * from testhil1; quit ! > rony3.txt

0
94
Member Avatar for crab68

grep -v "connected" filename > newfile With regards to the use of grep and then output to a file as it was done in the sample above, are there any limitation to its use especially when the file is big? I have experience record truncation when it is output to …

Member Avatar for crab68
0
2K
Member Avatar for hillol

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 …

Member Avatar for masijade
0
44
Member Avatar for hillol

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 …

Member Avatar for jim mcnamara
0
237
Member Avatar for Fr0z3n999

[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 …

Member Avatar for linux
0
188
Member Avatar for jercos

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

Member Avatar for jercos
0
98
Member Avatar for crestaldin

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 …

Member Avatar for masijade
0
162
Member Avatar for titotoms

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 …

Member Avatar for jim mcnamara
0
103
Member Avatar for stephan.opitz

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

Member Avatar for jim mcnamara
0
63
Member Avatar for Lois33

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 …

Member Avatar for Lois33
0
86
Member Avatar for sgriffiths

Hello I have a var="STEPHEN,GRIFFITHS" how can i check to see if a variable contains a certain character, ie a comma (,) Thanks

Member Avatar for masijade
0
56
Member Avatar for code321

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 …

Member Avatar for code321
0
87
Member Avatar for yy3

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 …

0
75
Member Avatar for kamitsin

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 …

Member Avatar for kamitsin
0
91
Member Avatar for mfeldheim

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 …

Member Avatar for kamitsin
0
95
Member Avatar for goolie

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.

Member Avatar for kamitsin
0
54
Member Avatar for NonProgrammer

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

Member Avatar for sn4rf3r
0
118
Member Avatar for sgriffiths

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 …

Member Avatar for jim mcnamara
0
105

The End.