home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,624 of 123,932   
   Marion to Frank Miller   
   Re: Strange questions (Was: How to edit    
   23 Jan 25 23:35:01   
   
   XPost: alt.comp.os.windows-10, alt.comp.software.firefox   
   From: marion@facts.com   
      
   On Fri, 24 Jan 2025 00:25:01 +0100, Frank Miller wrote :   
      
      
   >> Please improve so that billions of people can benefit from this script   
   >> which appends a new URL & description to the users' global bookmarks.   
   >   
   > WOW!I'm really impressed! That's a new level of super egocentric hubris.   
   > Tried that right now on my Linux-System and it didn't do *anything*!   
   > A really crappy programmed script.   
      
   Funny you mention what I was working on for my dual-boot desktop PC...   
      
   It's not done yet, but even though the linux newsgroups were NOT on the   
   newsgroups list, since you complained that the script worked for only   
   Windows users, here's an unfinished yet equivalent Linux Bash script, which   
   I'm sure you will certainly test for the team since you are a purposefully   
   helpful poster, Frank Miller.   
      
   Please post back with your comments on how well it worked in your tests.   
   Thanks!   
      
    #!/bin/bash   
      
    # 1. Set your preferred text or HTML editor   
    editor="vi"  # Replace with your preferred editor (e.g., nano, vim)   
      
    # 2. Set the location of your global bookmark HTML file   
    bmfile="/path/to/your/bookmarks/file/bm.htm"  # Replace with the path   
      
    echo "Global bookmark file is $bmfile"   
      
    read -p "Enter URL: (e.g., https://amazon.com/vine/about) " url   
    read -p "Enter Description: (e.g., Amazon Vine Program) " description   
      
    echo "Adding... \"$url\" as \"$description\""   
      
    echo "$description

" >> "$bmfile"        echo "\"$url\" as \"$description\" added to \"$bmfile\""               read -p "Do you want to edit the global bookmark file? [y/n] " choice               if [[ $choice == "y" || $choice == "Y" ]]; then        echo "Editing file: $bmfile"        $editor "$bmfile"        elif [[ $choice == "n" || $choice == "N" ]]; then        echo "File editing canceled."        fi               read -p "Press Enter to continue..."       --              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)   


[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca