Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 1
    You'll probably want to look at manual the bash builtin read and the -n flag for echo. But take a look at sed and rethink your concept as loading your phrase into a variable, say $NEW, and then running sed 's/123456/123'"$NEW"'456' Which probably has it own issues, especially if $NEW gets a slash inside it, but its a first step. Commented May 24, 2016 at 15:34