Post AhVziiz1wSNdUtH0ls by JayLittle@fosstodon.org
(DIR) More posts by JayLittle@fosstodon.org
(DIR) Post #AhVyMeV1pfVDGX9SOu by thelinuxcast@fosstodon.org
2024-05-03T06:36:58Z
1 likes, 0 repeats
I wish less would tell you how many lines you still had to go
(DIR) Post #AhVyMg228RUu1BbKU4 by IronPipe@fosstodon.org
2024-05-03T12:55:32Z
0 likes, 0 repeats
@thelinuxcast Something I've been doing forever, may not work for you, is to turn on line numbers with less -N <filename> and then typing capital G to go to the last line. Lowercase g brings me back to the first line. Far from perfect but a workaround I picked up.
(DIR) Post #AhVyxtMhWboC5M0uUS by JayLittle@fosstodon.org
2024-05-03T07:36:39Z
0 likes, 0 repeats
@thelinuxcast OMG yea
(DIR) Post #AhVyxtyzEGQw05vUAK by IronPipe@fosstodon.org
2024-05-03T13:02:15Z
0 likes, 0 repeats
@JayLittle @thelinuxcast Thanks to you two I started thinking there has to be a better way, so looked into it. There's totally a better way! Screen cap from my new method found on stackoverflow:
(DIR) Post #AhVz2x2LIk64v8u5Ls by JayLittle@fosstodon.org
2024-05-03T13:03:11Z
0 likes, 0 repeats
@IronPipe @thelinuxcast Holy shit. You are my hero.
(DIR) Post #AhVziiz1wSNdUtH0ls by JayLittle@fosstodon.org
2024-05-03T13:05:57Z
0 likes, 0 repeats
@IronPipe @thelinuxcast Hmmmm so if I use less by providing it a file for input, this totally works. However if I pipe content into it from something else, it doesn't work. It will show me the line numbers for what I'm currently looking at, but it won't show me the total.I guess given the way pipes work, this makes sense. Oh well - at least its somewhat better in some circumstances now.
(DIR) Post #AhVzijc1bTZXRpW9YG by IronPipe@fosstodon.org
2024-05-03T13:10:42Z
0 likes, 0 repeats
@JayLittle @thelinuxcast Yeah, by piping into less it doesn't know how long the file is. Would probably have to use temp files, if that's an option, to get the full effect.
(DIR) Post #AhWLSMLIYAvHdVI52m by thelinuxcast@fosstodon.org
2024-05-03T17:14:14Z
0 likes, 0 repeats
@IronPipe ooh, that is good. Thanks!