Search Results

Search: Posts Made By: kfad
5,309
Posted By kfad
exporting variables (shell scripting)
Hi, i've got an executable shell script, called mysc.sh with this line only:
export DATASIZE=0

i run it from my console (./mysc.sh), and after that in the console i run:
echo $DATASIZE
and...
14,768
Posted By kfad
thanks, that works, but it doen't when i open a...
thanks, that works, but it doen't when i open a file this way

open(FHConfi,"+< $CONFDIR/minstalador.conf");

(+< means:: +>$file&path Read, Write, Create, overwrites rather then...
14,768
Posted By kfad
printing an empty line in a file (perl)
I know this must be really easy, but i can't get it to work
I've got a perl script, with a file.
I want to print an empty line, and the following doesn't seem to work:
print nameoffile "\n"
...
41,619
Posted By kfad
thanks for the help!
thanks for the help!
41,619
Posted By kfad
small question of echo | grep command
Hi, i've got the following:

a=`echo $b | grep '^.*/'`

i'm storing in the variable the value of the variable b only if it has a / somewhere.
It works, but i don't want to print the value. How...
4,218
Posted By kfad
thanks for the answer!
thanks for the answer!
4,218
Posted By kfad
and if it doesn't? how would i know?
and if it doesn't? how would i know?
4,218
Posted By kfad
sorry! i solved it with: file * | grep...
sorry!

i solved it with:
file * | grep shell script | wc -l
4,218
Posted By kfad
i wanted to count the number of shell scripts in...
i wanted to count the number of shell scripts in a directory.
I think i got it with:
file *.sh | wc -l

what if a shell script isn't ended with .sh?
is there any way to know it with the file...
2,797
Posted By kfad
thanks guys !!
thanks guys !!
2,797
Posted By kfad
what's the difference of these two commands?
shouldn't they give the same output?

echo `echo \`date\``
is the same as the command date

echo `echo date`
prints the word date


thanks!
4,218
Posted By kfad
file command usage
Hi, i would like to determine how many shell scripts are in a directory. Someone recommended me the file command, but i don't know how to use it in that way.
anybody???
Thanks!!!
71,065
Posted By kfad
Thanks to all of you!!
Thanks to all of you!!
71,065
Posted By kfad
i wanted to know if there was a way to get te...
i wanted to know if there was a way to get te version number without parsing.. i didn't want to do that work

thanks anyways!!
71,065
Posted By kfad
Which version of perl is installed on my system?
Hi,
With the command perl -v i can see the perl version, but it's like a text file..
is there a command which could give me just the perl version number?
i.e.: "5.8.1"

thanks!!
129,068
Posted By kfad
Perderabo, your script works nicely.. thanks!
Perderabo, your script works nicely..
thanks!
129,068
Posted By kfad
installed means that i can run a perl script from...
installed means that i can run a perl script from the console.
I'll try that later, thanks!!
129,068
Posted By kfad
How to check if perl is installed?
Hi,
i'm designing a unix script and i want to know if there is a shell command or a way to see if perl is installed in the system.
thanks in advance!
Showing results 1 to 18 of 18

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