• 0 Posts
  • 18 Comments
Joined 3 years ago
cake
Cake day: June 13th, 2023

help-circle

  • FigMcLargeHuge@sh.itjust.workstoLinux@lemmy.mlBash scripting question
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 months ago

    Also, I am not sure you can automatically expect the output of the find command to be assigned to the file variable. I would output the find command to a temp file, and then grab the filenames one by one from the file and then put that in a do/done loop. Eg:

    find ./ -type f \( -iname \*.jpg -o -iname \*.png \) > yourtempfile.tmp    
    for file in `cat yourtempfile.tmp`     
    do     
        echo "in loop"    
        echo "$file"    
    ....     
    done
    

    Here are some results I got when it ran:

    in loop
    ./Figs_XSR900.JPG
    ‘.’/‘Figs_XSR900.JPG’
    Renaming ./Figs_XSR900.JPG to ./356bb549-d25c-4c9b-a441-f8175f963c8c
    in loop
    ./20240625195740_411A6199.JPG
    ‘.’/‘20240625195740_411A6199.JPG’
    Renaming ./20240625195740_411A6199.JPG to ./3cc9ba51-1d15-4a10-b9ee-420a5666e3e2


  • Damn english. Yeah I can see how that was a way to read it. I meant that they stepped out of the room one time, and I tickled the little guys feet. Who wouldn’t want to tickle a baby’s cute little feet. They never saw me, and I never told them I did it. Now if I was an asshole, I would be telling them what I did, now that he is older and doesn’t stutter, trying to use it to prove them wrong. But I would never bring it up, and only brought it up here because I can remain mostly anonymous so they will never find out.


  • I tickled his feet one time when they were out of the room and they have no idea it happened. Maybe I wrote that the wrong way, but I have never gone against their wishes otherwise, and I damn sure wouldn’t do it right in front of them. You are blowing this way out of proportion. I only gave out information pertinent to the topic of the thread, and since I don’t know you, and you don’t know me, I really don’t understand your point here. What are you trying to accomplish by judging me with a single paragraph of my story? Would you like me to add in the part where, when my kids were young their mom walked out on all of us and left us standing in a driveway as she drove off. I had three young kids that I had to take inside, feed, get them ready for bed, then get them up the next morning and get them to school and daycare, then get myself to work. You are trying to portray me as some gigantic asshole who doesn’t respect my kids. I love my kids and grandkids, and no matter what you say or read off your Jump To Conclusions Mat™ will change that. I have always been there for them, end of story. This has been interesting, but I am done here.





  • I really don’t want to push things too far with them, but so far I haven’t really been able to hold my grandkids except for very brief periods and even then there are rules. No kissing them on the hands or face, the aforementioned no tickling their feet. They don’t really seem to be up to letting me watch the grandkids at any point, even though I raised my son and his siblings just fine.

    The discipline seems to be completely missing, and I had a talk with my son and he attributed it to wanting to stop generational trauma. What the fuck does that even mean? I took it as though he is trying to say he had a bad childhood. But I had a great childhood, and I would say he did too as far as things like not having any abuse in the house, etc. So how far back does one need to go to round up some trauma. Maybe they are talking about his gf’s family? I guess I will have to sit down with him again and see what exactly he means by that.




  • Just as a general rule, I would start checking log files. You can start by searching /var/log for files that have been modified in the last few mins with something like “sudo find /var/log -mmin -10 -ls 2>/dev/null”. That will get you all log files in /var/log changed within the last 10 mins. Then you can tail those or grep them looking for clues. I have done searches of the entire file system looking for log files that were recently modified to find clues. It might also help to send the output to a file so you can view that and scroll up and down rather than just trying to read the output of the find, tail or grep commands. Put a “1>/{path}/filenameyouwanttouse.out” at the end of the command or you can pipe it to the tee command and it will show on the screen and write to the file you specify.


  • Yeah, my point was that the world has mostly always been controlled by the rich disgusting criminals and people who are just now realizing this need to be aware of that. It’s comparable in my opinion to people posting on youtube videos something like “this Elvis fellow was criminally underrated.” Just because something is new to you doesn’t mean it’s new to everyone.

    Back on topic, I firmly believe that social media is causing a lot of these mental health issues. People seem to believe that they are the main character for one, and they have an unhealthy obsession with trying to keep up with other people, while ignoring the fact that what people put online is highly edited and parsed. That’s just my theory as an observer from outside. I have no social media accounts other than this one, and if this all was powered off tomorrow I wouldn’t care.




  • I played GTA V online with three of my friends, and had about 900 hours of play. Then one day, bam, they literally cut anyone using Linux off from being able to connect to the servers. It just leaves a real bad taste in my mouth, because I would have probably gone to RDR2 next, and might have even bought RDR on my Switch. Voting with my wallet is all I can do, and at this point it feels like voting for a president. My tiny little vote won’t really amount to much, but hey at least I can feel good about standing on my principals. Like someone else said, they have 30 year backlog of games, and I have similar. So not playing either GTA V online anymore or buying GTA VI won’t really affect me in the long run as far as hindering my enjoyment of other games so there’s that…




  • I see your edit, and would like to comment that you also haven’t mentioned which rpi you were going to try this on. I recently wanted to set up a quick little pc using a rpi, just so I could browse the web and maybe watch some videos. Tried a rpi2 I had laying around. No way. Moved to a rpi3, and while it would load most pages, youtube was a bust as it completely maxed out the ram and swap. I then went to a rpi4 with 8gb and it has been doable, kind of. Sometimes it’s pretty choppy with the video, but basic web browsing is ok. I did try my plex the other day through the browser and it was barely acceptable. Lots of stuttering and sometimes just hangs, but that’s not the ideal way to view plex on anything. Haven’t tried my rpi5 yet, but my point to all this is that I think you are on the right track setting it up on a spare pc he has. If you had given him a rpi as a ‘desktop’ replacement it might have just soured him on the whole idea.