Search Results

Search: Posts Made By: dolphin06
24,586
Posted By dolphin06
Alright its working now that i add the comparison...
Alright its working now that i add the comparison operator.
Thanks guys.
24,586
Posted By dolphin06
Yes it tried, but didnt work the way i want, but...
Yes it tried, but didnt work the way i want, but i dont know where i m wrong even i m echoing some values.
24,586
Posted By dolphin06
Alright thank you. I have another question...
Alright thank you. I have another question though, now that i have my result is it possible to use it in another test in this way :


function_boolean
bool=$?
while [ $bool ] && [ boolean...
24,586
Posted By dolphin06
[Bash]Function returning a boolean
Hello all,

I would like to know if it is possible to return a the result of a boolean expression from a function like this

function()
{
# some code
return [ $nb1 -lt 100 ] || [ $nb2 -lt...
3,137
Posted By dolphin06
[bash]regexp to test PrintableString
Hello all,

I would like some help to find the regexp to test that a word does not contains anything than the character set of printable strings.
Especially the word should not contain a...
15,544
Posted By dolphin06
Allright, but removing the zeros is not the...
Allright, but removing the zeros is not the solution i m looking for.
Is there a way to tell printf to interpret it as decimal value ?
15,544
Posted By dolphin06
[bash]printf octal instead of decimal
Hello everybody,

I would like to understand why the printf function is returning me an octal value with this command :

printf %4.4d 0010 returns 0008

printf %4.4d 10 returns 0010

Thanks...
2
Nis
1,969
Posted By dolphin06
So nobody knows about NIS and my problem ??
So nobody knows about NIS and my problem ??
2
Nis
1,969
Posted By dolphin06
Nis
Hello i have some account already defined on NIS server. I would like to use this account on my machine.
What do i have to do ? Only create the home directory then use the account ??
If the user...
3,441
Posted By dolphin06
while read line do ...
while read line
do
isTitle=$(echo $line | grep "^[[:digit:]]")
if [ "$isTitle" ]
then
num=${line%%[[:blank:]]*}
...
3,441
Posted By dolphin06
ok, i almost done it: while read line ...
ok, i almost done it:

while read line
do
isTitle=$(echo $line | grep "^[[:digit:]]")
if [ "$isTitle" ]
then
...
3,441
Posted By dolphin06
I've got another solution but still dont know how...
I've got another solution but still dont know how to replace the text:

first_script.sh | while read line
do
isTitle=$(echo $line | grep "^[[:digit:]]")
...
3,441
Posted By dolphin06
I started with this : first_script.sh | awk...
I started with this :

first_script.sh | awk '/^([[:digit:]]|[[:digit:]].)+[[:blank:]]/ {print}'


Instead of printing i would like to replace as explain in the first post.
3,441
Posted By dolphin06
bash search and replace
Hello all,

I would like to replace some text that are forwarded in standard output from a script, then save the replaced text to a file.
The text i would like to replace is in the form of:

1...
Showing results 1 to 14 of 14

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