Search Results

Search: Posts Made By: brhn
1,314
Posted By brhn
for b i just made the sed command as sed -n...
for b i just made the sed command as

sed -n 's_.*".*\('"'.*'"'\).*".*_\1_gp'

for tcsh script question a i can do egrep '\w-\w+-\w' but output doesn t look same i know i must use smth like sed...
1,314
Posted By brhn
a few single line command
i m trying to find the answers of a past year exam questions , i m sure it ll be very easy for u guys , this is not a hw assignment or somth. i just wanna be sure of right answers .

write a...
1,274
Posted By brhn
a part of replacer MUST use SED
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
there are 3...
3,751
Posted By brhn
is an example question from internet reference...
is an example question from internet reference book!
3,751
Posted By brhn
1-) first grep a word but the word u grep must...
1-) first grep a word but the word u grep must appear at the end of the line (i know this part grep 'word'$)

2-) then You will filter your above grep results so
that you only consider matches...
3,751
Posted By brhn
ok , i start from very beginning ; imagine i...
ok , i start from very beginning ;

imagine i have a text with 3700 lines

"You are to write a script that takes a file name and a word as
input. You will then locate...
3,751
Posted By brhn
i m very sorry that i couldn t explain it good ! ...
i m very sorry that i couldn t explain it good !

ur grep might get other even numbers from the line , but the numbers at the beginnig of lines are the line numbers of a txt file ,in that line...
3,751
Posted By brhn
is there any way to make this with grep and some...
is there any way to make this with grep and some regular exp.
3,751
Posted By brhn
ok but point is "i need to get evenly line...
ok but point is "i need to get evenly line numbers"

grep "...[02468]" filename same number mixed string combination can be placed any where in any line

3461:1.D. The copyright laws of the...
3,751
Posted By brhn
How to get evenly Line numbers?
hi there ,

i m new to unix , i d like to ask how can a get only even numbered lines matches with the word i search from txt file

for example :



3461:1.D. The copyright laws of the place...
Showing results 1 to 10 of 10

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