Search Results

Search: Posts Made By: dsell002
5,481
Posted By dsell002
thanks
I finally figured it out. For anyone who is interested. The correct way to incorporate a script that replaces a user inputted string with spaces is as follows:

#!/bin/tcsh
set stringOld="$1"...
5,481
Posted By dsell002
sample input/output
Say I have a file called hello.txt. Inside the file is the sentence "Hi. How are you?". I want to be able to replace any string in the sentence. If I try to replace "Hi" with "Hey you", I would...
5,481
Posted By dsell002
special character
While single quotations are the standard when using sed, they don't work in this case as $ needs to be treated as a special character.
5,481
Posted By dsell002
sed in script
I'm trying to write a simple script that replaces a string. The script works for uninterrupted strings, but as soon as sed encounters a space it stops reading the new string. I've tried double...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy