Search Results

Search: Posts Made By: ozum
6,888
Posted By ozum
db connection
Hi,
I'm trying to write a script which will run a select on db.

#!/usr/bin/ksh
SQL_INPUT_FILE=file_name.sql
SQL_OUTPUT_FILE=output.txt
MANPATH=/usr/share/man:/opt/SUNWspro/man:/usr/local/man...
6,451
Posted By ozum
Date formatting in shell script
Hi,

I am writing a script and I need to calculate last weeks date.

I get the current date as;
today=`date '+%Y%m%d'`
and I need last week inthe same format.

Thanks,
33,017
Posted By ozum
Thanks for the replies for i in `cat...
Thanks for the replies

for i in `cat text.txt` ...
worked..

seq didn't work in ksh :(
33,017
Posted By ozum
ksh - for loop with variables
Hi,

I 'm trying to send an e-mail for every different line in the .txt


for i in {1..$variable}
do
sed -n "/$i$/p" text.txt
done


I have two problems about this.
First one is that for...
1,063
Posted By ozum
It workds thanks.. I tried it before but I...
It workds thanks..
I tried it before but I didnt realise it worked because of screen settings..

Thanks again..
1,063
Posted By ozum
And what if i have the list such as a,b,c,d ...
And what if i have the list such as

a,b,c,d

I couldn't edit it.
1,063
Posted By ozum
changing the format of the list
I have a file such that

List : a, b, c, d
I want to list this as
List
a
b
c
d

however the trick is the number of arguments in the list is varies. There might be 0-7 variables .

Can you...
989
Posted By ozum
interface login by shell scripting
Hi,
I am trying to write a script which would get some data from an interface.
However the problem is that I have to enter username and passwd as i enter the interface.

I tried ...
2,283
Posted By ozum
I dont have the chance for...
I dont have the chance for VAR=string\!string\!string\!
however
VAR='string!string!string!'
worked thankyou..
In . and , I dont have any problems when I use ""
is there any other way to...
2,283
Posted By ozum
! error
Hi
I'm trying to finish a script to replace a certain text in a file.
I 'm controlling for the metacharacters, however now there s a problem with "!".
The script is below. The problem I've faced...
1,741
Posted By ozum
thank you for the response however this one...
thank you for the response however
this one didn't work since i 'm using a sentence as a string.
here is the response;

>more alphanumeric.sh
case "$1" in
*[!a-zA-Z0-9]*) echo "non...
1,741
Posted By ozum
metacharacters separation
I have prepared a script to submit a string in a txt file.
However there are somethings that I have to check before submitting the string in the txt file.
One of those checks is to determine...
2,918
Posted By ozum
Thank again, What should i do if I want to...
Thank again,

What should i do if I want to to remove the #, I have tried coule of things on the sed you've told me, however it didnt work.


Now if I have sth like

echo "a"
#echo"b"
echo...
2,918
Posted By ozum
I konw that one, I added the mode to the script...
I konw that one,
I added the mode to the script and right now it works perfectly...
Thanks again..
2,918
Posted By ozum
Thank you so much..
Thank you so much..
2,918
Posted By ozum
Thank you, I am really new at shell...
Thank you,

I am really new at shell scripting.

However I have a little problem when I do this.

Lets say that my original script is as follows;

#!/bin/ksh
echo "a"
echo "b"
echo "c"

...
2,918
Posted By ozum
updating a single line by script
hi,
I'm trying to add a # to the beginning of the line where the a word is included.

and the i want to run the whole original script.

and if possible I would prefer that line would stay in the...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 06:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy