Search Results

Search: Posts Made By: Ravi_Teja
1,186
Posted By PikK45
Use awk -v iter=$ITERATOR...
Use
awk -v iter=$ITERATOR 'NR==iter{print;exit}' EMAIL_REPORT.CSV >temp_mail.txt

or
sed -n "$ITERATORp' EMAIL_REPORT.CSV >temp_mail.txt
2,073
Posted By hanson44
As did the other (faster) poster, I tried...
As did the other (faster) poster, I tried reformatting the script to make it easier to read, and to make the logic work (as it seemed to me). You can correct if I mixed something up.
ITERATOR=1...
1,186
Posted By hanson44
Would this work for you: $ COUNT=`tail -1...
Would this work for you:
$ COUNT=`tail -1 test.txt`
$ echo $COUNT
4
1,641
Posted By Yoda
Not sure if this is what you are looking for:- ...
Not sure if this is what you are looking for:-
# cat mail_cmds.sh
{
cd /export/home/teja
ls -lrt Quote.java*
mv Quote.java Quote.java.20121023
cp /tmp/Quote.java .
ls -lrt...
Showing results 1 to 4 of 4

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