Search Results

Search: Posts Made By: rambler
2,136
Posted By rambler
Thank you cfajohnson and AlbertGM it's ok when...
Thank you cfajohnson and AlbertGM
it's ok when i use . $PATH_NAME or . "$PATH_NAME/bin/finename.sh"

cfajohnson i use the grep to retrive the lastest directory (include version) that contain the...
2,136
Posted By rambler
bach file callign a bach file
Hi all
i want to write a ksh file that can be able to get a path directory and execute an other bach file

my scripte semm like that


#!/bin/ksh

ENV_ID=$1
WORK_DIR=${PWD%/bin}
...
16,657
Posted By rambler
Another allternative way :) >MESSAGES="hello...
Another allternative way :)

>MESSAGES="hello world"
>PART1=${MESSAGES% }
>PART2=${MESSAGES#* }
>echo $PART1
>echo $PART2

Best regards
1,575
Posted By rambler
thank you, how i can do it (i'm...
thank you,

how i can do it

(i'm novice in KSH)

best regards
1,575
Posted By rambler
manage function's output
Hi all,
how i can get an calculated value from a function
for exemple
my function is like

function getMyPseudo {
..
..
echo "Rambler"
}


i need to put the printed string into a...
6,942
Posted By rambler
Hi jim if you see the loop suggested by...
Hi jim

if you see the loop suggested by 'sethcoop' and that get a part for my need

for all in `find ./ -type f -name "*.log"`
do
grep error $all > ./tmp/$all.error
done

the $all is...
6,942
Posted By rambler
ive make for all in `find ...
ive make

for all in `find ./clafzecxs2.edfgdf.fr -type f -name "*20081014.log"`
do
file = `basename $all`
print $file
done


i get someting like :



that resolve the file name...
6,942
Posted By rambler
if i get the two way that will be fine may i...
if i get the two way that will be fine

may i need some thing like :


for all in `find ./ -type f -name "*.log"`
do
dir = `dirname $all`
file = `filename $all`
grep error $all >...
6,942
Posted By rambler
Thank you sethcoop, for your response that...
Thank you sethcoop, for your response

that not work like a want,
the $all variable contant the full path of log file

the error geted is similar to :


test.ksh[3]:...
6,942
Posted By rambler
Redirect grep output to dynamique fileName and subdirectory
Hi all
i'm new in KSH,
i want to write a script to grep a logs files and redirecting the result into a relative subdirectory/file.txt that must be created near to each log file

my begin script...
Showing results 1 to 10 of 10

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