Search Results

Search: Posts Made By: syalala
1,215
Posted By syalala
I got it! Thanks a lot
I got it! Thanks a lot
1,215
Posted By syalala
what if this 'input' isn't a file? i have...
what if this 'input' isn't a file?
i have couple of numbers which is a result of a 'for loop'. assume that it looks like this :

for varN in 1 2 3 4; do echo $varN; done;
the result will be :
1...
1,215
Posted By syalala
Write over data to new file
hi..i would ask about how to write over data to new file with BASH.
so..assume my data looks like this :
11
12
13
14
15
...and so on. It's always line by line. and that's for the first file....
5,278
Posted By syalala
got it! Using 'read' that what i want.. Thank you...
got it! Using 'read' that what i want.. Thank you very much for all of you. that's really helpful!
5,278
Posted By syalala
ya, i tried already that code. first, i dont...
ya, i tried already that code. first, i dont really understand what 5 is. And to open or get the file, i just use $1.

would you mind reading my post where there's a 'grep' on it please :)
That's...
5,278
Posted By syalala
without using awk, maybe?
without using awk, maybe?
5,278
Posted By syalala
actually the data on file looks like this : ...
actually the data on file looks like this :

#there is some texts here
#also here
123 12 1234

and then i try to 'grep' those numbers with this :

grep -e '^[0-9]* [0-9]*$' $file | tr ' '...
5,278
Posted By syalala
what's the meaning of 1p or 2p? what i know -n...
what's the meaning of 1p or 2p?
what i know -n is for the line number, right?
5,278
Posted By syalala
thanks chabler_xl.. but, if i dont know the...
thanks chabler_xl..
but, if i dont know the data at first. i mean, what i know is only.. there is a file with all data in one line like i write before. without knowing the first line is 123, second...
5,278
Posted By syalala
with loop? also with an array? i dont really get...
with loop? also with an array? i dont really get it. sorry
5,278
Posted By syalala
yes..that what i mean..
yes..that what i mean..
5,278
Posted By syalala
Grep a new line?
hi,..i'm beginner in bash.
my simple question is, how can i grep a line by line without using 'awk' maybe?
for example, assume i have a data like this :

123
12
1234

i would like to say...
Showing results 1 to 12 of 12

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