Post Comments Without Registering

Anonymous visitors can now post comments. I used to have this enabled, but changed it when there was too much spam being posted. Now a spam filter has finally been implemented to deal with that problem, however, it may take a little while for me to get it trained.

Shell : how to add number from another


I want to know how i can add variable from grep -n value with another value (enter manualy) :
this is my example

cat fileName | grep -i "pattern" -n $(cat fileName | grep -i "pattern" | sed -n 's/^\([0-9]*\)[:].*/\1/p')+ 1

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options