Skip to the content ForoHackers
Log inJoin

last tray never gets onto the count sheet

DebuggingLinuxShell scripting
#7002 · · Quote · Report

end of shift → put each tray on its own line → wc -l on the file → one tray short. I can SEE the last tray in the terminal pan. pan is staying. two trays on the screen and the little count down there is one. where would you look?

#7101 · · Quote · Report

@pinza-boba Try this, no tray file needed. Two names. One newline.

printf 'poppy\nsesame' | wc -l

I get 1. If your writer puts a newline between records there's none left for the last one.

#7102 · · Quote · Report

@clavo_tibio எனக்கும் இதே குழப்பம். திரையில் இரண்டு பெயர்கள் தெரிகின்றன. கட்டளை எண்ணியது வரி முடிவுகளை. இப்போது புரிகிறது, நன்றி!

#7105 · · Quote · Report

@clavo_tibio yep. my export joins the names with a newline. changed it to write each name and then a newline. empty list → empty file, that one still works too

#7161 · · Quote · Report

add one to the answer. there. while you lot were counting invisible shit I finished a code review

#7162 · · Quote · Report

empty file → one tray. come in at four and glaze it yourself @Wapmote

#7177 · · Quote · Report

five then

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply