Well, it works very well to pipe "more" into "grep" to search for a text string.
More prints the entire file content (as there is no terminal to limit output). Grep searches the output. The file is a readable text file. Not a binary one. It lists transfered files. söndag 26 december 2021 kl. 19:35:03 UTC+1 skrev [email protected]: > #FTP.last is a binary file. So that 'aV' may not be connected to the > following file name. Id not not understand the command more in connection > with grep. more is an interactive command. Its output cannot be piped to > another command. I guess most people would use grep allone like > grep search-text file-name > > [email protected] schrieb am Sonntag, 26. Dezember 2021 um 16:40:00 > UTC+1: > >> I have a script that makes a pgn-graph over the WAN-speed (mobile >> connection so it varies some over time). I put this image in the Weewx >> html-root so that Weewx FTP would upload it at the same time as all the >> other files. >> >> But it doesn't. But only this non-Weewx-file. I "touched" a foo.bar and >> it got uploaded. >> >> From the #FTP last -file: >> >> pi@RPi-3Bp-Arelien:/var/www/html/weewx $ more \#FTP.last |grep wan >> aV/var/www/html/weewx/wanspeed.png >> >> So, what does "aV" stand for? The files that are uploaded get "aS" as a >> prefix. >> >> I see that some more files as also not uploaded, I guess as they are not >> changed and hence don't need to be uploaded. But my "wanspeed.png" is >> changed every 15 min. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0a8dedd2-13f3-4638-988a-104343309342n%40googlegroups.com.
