Returning the last line of a file

(imported topic written by NelsonEW91)

I’m searching every where and can’t find what I would think would be easy…How do you just return the last line of a file? Thanks.

(imported comment written by NoahSalzman)

This should help:

http://forum.bigfix.com/viewtopic.php?pid=7532#p7532

(imported comment written by NelsonEW91)

OMG I quit…I totally looked at that thread but didn’t read the entire thing :(. Thank you! I was doing the exact same thing but trying to do it with a whose clause and couldn’t get it to work…

(imported comment written by NoahSalzman)

Ha! Yeah, the Forum is great… but sometimes there is just so much darn straw that it can be hard to find the needle.

(imported comment written by BenKus)

I think this question is one of the test questions in our Fixlet Authoring training class… :slight_smile:

Ben

(imported comment written by NelsonEW91)

Honestly, Ben,

I think it is too, I totally remember discussing it when I took the training like 3 years ago. But I couldn’t remember. Problem is they sent us to training like 6 months before they implemented to product, stuff gets stale after 6 months of not being used.