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 7697359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:59:38+00:00 2026-05-31T21:59:38+00:00

I noticed many files in my directory, called sedAbCdEf or such. Why does it

  • 0

I noticed many files in my directory, called “sedAbCdEf” or such.

  • Why does it create these files?
  • Do these have any value after a script has run?
  • Can I send these files to another location , e.g. /tmp/?

Update:

I checked the scripts until I found one which makes the files. Here is some sample code:

#!/bin/bash
a=1
b=`wc -l < ./file1.txt`
while [ $a -le $b ]; do
    for i in `sed -n "$a"p ./file1.txt`; do
        for j in `sed -n "$a"p ./file2.txt`; do
            sed -i "s/$i/\nZZ$jZZ\n/g" ./file3.txt
            c=`grep -c $j file3.txt`
            if [ "$c" -ge 1 ]
            then
                echo $j >> file4.txt
                echo "Replaced "$i" with "$j" "$c" times ("$a"/"$b")."
            fi
                echo $i" not found ("$a"/"$b")."
            a=`expr $a + 1`
        done
    done
done
  • 1 1 Answer
  • 0 Views
  • 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-31T21:59:39+00:00Added an answer on May 31, 2026 at 9:59 pm
    • Why does it create these files?

    sed -i "s/$i/\nZZ$jZZ\n/g" ./file3.txt

    the -i option makes sed stores the stdout output into a temporary file.
    After sed is done, it will rename this temp file to replace your original file3.txt.
    If something is wrong when sed is running, these sedAbCdE temp files will be left there.

    • Do these have any value after a script has run?

    Your old file is untouched. Usually no.

    • Can I send these files to another location , e.g. /tmp/?

    Yes you can, see above.

    Edit: see this for further reading.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed many (all?) PHP constants have a single-letter prefix, like E_NOTICE , T_STRING
I have noticed many times developers use like a quick key to generate properties
I have seen on many sites the silverlight video player. I noticed that all
I have an ASP.NET app with many .resx (resource) files used for localized user
I've noticed that just in the last year or so, many major websites have
I noticed that the default sites-available file (/etc/apache2/sites-available/default) contained many directory tags with various
I have seen many times in htaccess these type of rules : RewriteCond %{HTTP_REFERER}
So I have an APP that loops and continuously draws many png files to
All, While going through some of the files in Java API, I noticed many
I've noticed many sites are able to use a username or page title as

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.