Search Results

Search: Posts Made By: Imre
2,634
Posted By hicksd8
Referring to vbe's post#2 and suggested command...
Referring to vbe's post#2 and suggested command line he gives (which is the way to do it), I would comment as follows.

1. The destination path MUST already exist before the command is run. If...
2,634
Posted By vbe
I had a hard day so not sure what you mean... as...
I had a hard day so not sure what you mean... as using cp -r to copy directories , I dont because of issues with links files perms etc... and prefer using cpio or tar on the fly, now as I ma leving...
17,799
Posted By Don Cragun
Yes, you are confusing yourself and us. In...
Yes, you are confusing yourself and us.

In sed you do not append text to the end of a line. The sed a command appends lines of text following the current line. And, the sed i command inserts...
17,799
Posted By RudiC
Unfortunately it's not much clearer now, at least...
Unfortunately it's not much clearer now, at least to me. Let me try to help by just guessing what you need, ignoring the samples you gave above.
Please be aware that sed matches case sensitive...
17,799
Posted By Don Cragun
Assuming that you used the s (substitute) command...
Assuming that you used the s (substitute) command in sed to change the empty string at the end of a line to a specific string, why not also use the s command to change occurrences of programmer to ...
1,352
Posted By MadeInGermany
Ah, then it's sed '/"$/!{N;s/\n//;}' fileIf not...
Ah, then it's
sed '/"$/!{N;s/\n//;}' fileIf not ending with a " append the next line, delete the embedded \n

---------- Post updated at 05:20 PM ---------- Previous update was at 03:18 PM...
1,352
Posted By MadeInGermany
@lmre: the n command seems more appropriate here....
@lmre: the n command seems more appropriate here.
To delete an empty line following a line ending with a "
sed '/"$/{n;/^$/d;}' file
Showing results 1 to 7 of 7

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