Search Results

Search: Posts Made By: Oddant
2,356
Posted By Oddant
Thanks guys, I can't make a choice amongst all...
Thanks guys,
I can't make a choice amongst all these methods :D
2,356
Posted By Oddant
save only the first letter from lines
the title is self explanatory

I assume awk and sed existence to do the job but i'm really not good in pattern space comprehension to make it so

I wanna pick the first letter of each line in a...
2,415
Posted By Oddant
Ok I've been re-scripting it and now it works,...
Ok I've been re-scripting it and now it works, I'll never know what was the trouble but who cares ? :)

thanks for your help
this forum is a piece of gold
2,415
Posted By Oddant
hi, I've typed -lt and it works. But now...
hi,

I've typed -lt and it works. But now I've got two questions :

1) Why -ne isn't correct to be written here ?
2) What does -le stand for in this boolean test ?

Anyway big thank for your...
2,415
Posted By Oddant
I really need to sleep :D even though I...
I really need to sleep :D

even though I changed the line, it remains the same odd infinite loop, I need to type ctrl+c to stop the execution.
And my folder comes up with the final value of the...
9,263
Posted By Oddant
ok nice it works thank you so much
ok nice it works

thank you so much
2,415
Posted By Oddant
I've been placing $ like you wrote it and (( ))...
I've been placing $ like you wrote it and (( )) but it's still not working

the loop is still acting crazy
9,263
Posted By Oddant
Thanks jim, problem solved, but let's assume...
Thanks jim,

problem solved, but let's assume i'm using a variable in the pattern which would be

grep -e 'file$1' filename

$1 is not interpreted and remains $1 in the pattern right ?
2,415
Posted By Oddant
what's wrong with that loop ?
hello everybody,

here's my code


mkf ()
{
INDEX=0;
while [ INDEX -ne $1 ]; do
touch "file$1.f";
INDEX=$INDEX+1;
done
}

when I type
mkf 10
the loop...
1,342
Posted By Oddant
Thanks dudes I really gotta learn regular...
Thanks dudes
I really gotta learn regular expressions :D

any website recommandations ?
1,342
Posted By Oddant
start to print when a specified word is matched
Hello everybody,

How can I start to print an output when a word hits the pattern space.
for example:

file.txt :
first line
second line
third line
fourth line
...

cat file.txt >...
9,263
Posted By Oddant
[grep] seeking more than one word
Hello everybody,

How can I do seek several words with grep command ?
I didn't find how to do that in the man for I'm French.
Then I tried
man bash | grep -in control flow
But flow is...
1,888
Posted By Oddant
I'm using bash :cool: Thanks for these...
I'm using bash :cool:

Thanks for these replies guys, they are helpful

Regards
1,888
Posted By Oddant
ok that was helpful thanks even though it didn't...
ok that was helpful thanks even though it didn't answer the main question.

Are those brackets important to be written ? or Are those brackets written just for a better human-readability ?
...
1,888
Posted By Oddant
whats the function of brackets here ?
Hello,

as the title reads, in a control flow like "if" what's the function of brackets ?

if condition then ...
if [[ condition ]] then ...

Since I saw people using them I wonder whether...
2,336
Posted By Oddant
Ok it works perfectly, what a pleasure to end up...
Ok it works perfectly, what a pleasure to end up with what we looking for.

Thanks a lot having helped me ! :b:

Regards, Oddant
2,336
Posted By Oddant
Nope sorry that doesn't seem to work or perhaps...
Nope sorry that doesn't seem to work or perhaps i'm doing it the wrong way.
does it not already exist a unix command ?

ok i've found the line function but this function seems to return the first...
2,336
Posted By Oddant
Extract a specific line from a stream
Hello,

I'm trying to code a bash script and I was wondering how to extract a specific line from a stream.

E.g.
My file "file" contains three lines and i'd like to find a function f which...
Showing results 1 to 18 of 18

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