Search Results

Search: Posts Made By: ctphua
3,598
Posted By ctphua
thanks Don Cragun. you just give me hint on how...
thanks Don Cragun.
you just give me hint on how i should proceed with my several cases and i just made it. thanks.

thanks to RudiC on the example. i have fun with it.

now i can produce what i...
3,598
Posted By ctphua
what is the content is not one field? example ...
what is the content is not one field?
example
S 0.0 0.0 (reg, inst050)
kfdasdf dsaf
easd sadfas
ffadsfasfdsadsa dsafdsafas
dd8385fdsa asdasdfaf2432vdsaf
dsafcfasfdsa f32f32asf322dsdsaf
3,598
Posted By ctphua
hi Rudic that is very powerful single line...
hi Rudic
that is very powerful single line solution, would you mind to explain to me how it actually does?
3,598
Posted By ctphua
i had anther post 6 hrs ago with different...
i had anther post 6 hrs ago with different question, and the solution was with sed. that is the reason i would stay with sed for my solution but in this example, the resources i could find was mostly...
3,598
Posted By ctphua
thanks. the output results should look like this ...
thanks. the output results should look like this
S 0.0 0.0 (reg, inst050)
c
d
e
f
k

S 0.0 0.0 (mux, m030)
g
k
r
s
v
x

S 0.0 0.0 (reg, inst020)
m
n
q
3,598
Posted By ctphua
Sorting content between match pattern and move on with awk and sed
S 0.0 0.0 (reg, inst050)
k
e
f
d
c

S 0.0 0.0 (mux, m030)
k
g
r
s
x
v

S 0.0 0.0 (reg, inst020)
q
s
n
m
1,464
Posted By ctphua
very informative. i will keep improving on sed...
very informative. i will keep improving on sed skill. thanks for motivating me up with the solution.
1,464
Posted By ctphua
i try to do some modification on top of your...
i try to do some modification on top of your first solution. it worked but i will keep improving on that.
thanks

echo "file 1123.x July 23:222...
1,464
Posted By ctphua
thanks. but i think my explanation was wrong...
thanks.
but i think my explanation was wrong in the first place,
actually i wanted to output only 1.7 (remove everything but 1.7)
1,464
Posted By ctphua
Remove/replace the very first character/symbol match
cat file.txt
file 1123.x July 23:222 /cd/hh2/k39/ss2/f7d8d9d8e6r5t4s/dd2/e/s7a/s7a2afa5017d8b975-1.7-1395610245-b22e19bbc477b134

i wish to only extract out the 1.7 (anything within the first - -)...
1,347
Posted By ctphua
Comparing 2 variable in a list with foreach
cat file1
a b c d e f

this is what is in my script

foreach i (`cat file1`)
foreach j (`cat file1`)
#do something here
end
end

basically i want to compare ab, ac, ad, ae, af, ba, bc,...
2,918
Posted By ctphua
updated in first thread. thanks erm.. i...
updated in first thread. thanks


erm.. i miss up some string in the first post.. i have modified my file
2,918
Posted By ctphua
Grep correct pattern with special character and variables
cat file
time="north_south_east_west_08:00" location="A" start="left" status="ok" end="north"
time="north_south_east_west_12:00" location="C" start="right" status="ok" end="south"...
Showing results 1 to 13 of 13

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