Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:57:51+00:00 2026-05-23T00:57:51+00:00

This file demonstrates a typical @installhook it does exactly the same thing as if

  • 0

This file demonstrates a typical @installhook

it does exactly the same thing as if you would have called apps/install GoFukUrself

and this file did not exist.

This system exists so we can copy multiple files, rather than just a single file if

need be. Your file does not have to be a shell file, it can be any script or program.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:57:52+00:00Added an answer on May 23, 2026 at 12:57 am
    # where: [$] = NAME of a string var, [%] IMMEDIATE VALUE
    
    # example:
    # declare container lookfor; declare -i offset;
    # .
    # .
    # string.find container lookfor $offset;
    
    shopt -s extglob    # activate extended regular expression parsing.
    
    declare result;
    
    # offset is optional. -% = undef.
    function string.find { : [$]source [$]find [%]offset
    
        local buffer=${!1} find=${!2} empty='';
        local -i offset=${3:-0};
    
        [[ $offset -eq 0 ]] || buffer=${buffer:$offset};
    
        [[ -n "$buffer" ]] || { result=$empty; return 1; }
    
        #  Matches at front of string?
        [[ "$buffer" =~ ^("$find") ]] && { result=0; return 1; }
    
        [[ "$buffer" =~ ^(.*|$)?("$find")(.+|$) ]] && {
    
            let buffer=${#BASH_REMATCH[1]}+$offset;
    
        } || {
    
            result=$empty; return 1;
    
        }
    
        result=$buffer;
    
    }
    
    function string.find.all { : [$]source [$]find
    
        local source=${!1} find=${!2} foundlist='' offset=0;
    
        while string.find source find $offset; do
    
            foundlist+="$result ";
            let offset=$result+${#find};
    
        done
    
        echo $foundlist
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that effectively does this : File file = new File(C:\\Program
What does this mean exactly? I'm doing something like this: File.Copy(@\\foo\bar\baz.txt, @c:\test\baz.txt); MSDN doesn't
I have a generated txt file. This file has certain lines that are superfluous,
I have a filename that has the following format: timestamp-username-1 This file is constantly
How can I create this file in a directory in windows 2003 SP2: .hgignore
I've got a big file on which I'm opening a FileInputStream. This file contains
After saved upload file, i got local url of this file, how i convert
How to read a web server log file in Java. This file is getting
I've done numerous searches and I realize that I can just download this file
This XML file contained archived news stories for all of last year. I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.