Search Results

Search: Posts Made By: drareeg
2,648
Posted By drareeg
! thanks :D
! thanks :D
2,648
Posted By drareeg
deleting lines in ex
Hello, im using ex to manipulate some text. Im trying to delete all the lines except those on which a certain regex can be found.

the important part of the script:

ex temp << 'HERE'
g/regex/p...
2,033
Posted By drareeg
vi substitution
Hello, I'm trying to do a substitution in vi. which adds a field for the year to a line.
If the line doesnt include a year, it should still add a field (although empty)

the fields are:...
1,185
Posted By drareeg
Thanks! that works fine BUT the problem is, I'm...
Thanks! that works fine
BUT the problem is, I'm doing this as homework in a way longer command, and we aren't allowed to use control structures in this exercice.
sed -n '/aaa/,/bbb/p' file.txt | tr...
1,185
Posted By drareeg
sed help
Im trying to print out the section BETWEEN the matching pattern of string 1 and string 2. I dont want to print out the lines on which the matches are.

for example: (if i look for aaa and bbb) in...
1,637
Posted By drareeg
huh??
huh??
1,637
Posted By drareeg
input: ./validate_html www.google.com...
input: ./validate_html www.google.com (http://www.google.com)
would give:
Errors found while checking this document as HTML5!

---------- Post updated at 11:08 AM ---------- Previous update was...
1,637
Posted By drareeg
sed multiple line trouble
Hello, im writing a script that validates a URL (the parameter) using http://validator.w3.org
first it downloads the site (the output line I want is stored in the h2 field of the site's html.
...
1,266
Posted By drareeg
thanks a lot! it works now :)
thanks a lot! it works now :)
2,513
Posted By drareeg
sed 's/ //' filename should delete spaces i...
sed 's/ //' filename should delete spaces i think.
u can also use
cat file | tr -d' '

just a guess..(im a noob).
1,266
Posted By drareeg
[SOLVED] problem using ex in script
SOLVED

Hello, im trying to write a simple script that takes 1 parameter (the name of the file)
the script then creates the file, makes it executeable. until here it all works fine.

then I...
Showing results 1 to 11 of 11

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