Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LoloFR

    Its everybodies friend: Vi

    Hello, At first you have to use a \ with the last two / and then add a & to copy the line Here is my solution : %s/.*/perl -e"s\/string1\/string2\/g" & @+ Lolo
  2. LoloFR

    text mark-up

    Hello, Is the script executable ? (chmod +x script.sh) some awk don't recognize the getline subfunction try other version of awk. Look at this file for example and check with your OS : http://www.shelldorado.com/articles/awkcompat.html PS : hey marsd, I USE gsub ;-) @+ Lolo John was...
  3. LoloFR

    insert characters in each line of a file.

    and with awk :-) awk -v QUOTE=\` '{ print QUOTE $0 QUOTE }' @+ Lolo
  4. LoloFR

    text mark-up

    You can try this. script.sh : awk '{ #Read the pattern file substfile = &quot;'$1'&quot; while( getline inputPattern < substfile ){ gsub(inputPattern,&quot;§&quot;inputPattern&quot;§&quot;,$0) } close(substfile) print $0 }' and you launch with : script.sh...

Part and Inventory Search

Back
Top