Search Results

Search: Posts Made By: Himanshu_soni
61,236
Posted By pludi
This question has been asked so often it has it's...
This question has been asked so often it has it's own FAQ section here (https://www.unix.com/how-do-i-send-email/). Please use the search feature first, especially for questions that everyone sooner...
4,249
Posted By pravin27
remove $ ... Please check post #11 ...
remove $ ... Please check post #11
Max_LIneNo=`awk -v var="$var3" '$1FS$2 ==$var {i=NR} END {print i}' input File`
4,249
Posted By yinyuemi
try: grep -wn "^Nov 10" purge_exp1.txt | cut...
try:

grep -wn "^Nov 10" purge_exp1.txt | cut -f1 -d: | tail -1

or:
awk '/^Nov 10/{v=NR}END{print v}'
4,249
Posted By pravin27
Try like this, Max_LIneNo=`grep -n "^Nov 10"...
Try like this,
Max_LIneNo=`grep -n "^Nov 10" purge_exp1.txt | cut -f1 -d: | tail -1`
OR
awk '/^Nov 10/{i=NR} END {print i}' purge_exp1.txt
Showing results 1 to 4 of 4

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