Guest User

Untitled

a guest
Sep 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. daatee="$(date +%Y%m%d)"
  2. NumLines="$(sed -n '$=' test.txt)"
  3. sed -i "$ a $daatee|$NumLines" test.txt
  4.  
  5. sed -i "$ a $(date +%Y%m%d)|$((`wc -l test.txt` - 2))" test.txt
Add Comment
Please, Sign In to add comment