![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2005
Location: elkektex at gmail
Posts: 1,813
|
Shell scripting ,a bit of help please
Hi,
I`ve got a text file and what I want to do is add a certain text string to the end of each line. Say for example my text file looks like this: Hello line1 Hello line2 Hello line3 ... And I want to add the string "Bye" to the end of each line: Hello line1 Bye Hello line2 Bye Hello line3 Bye ... I am pretty sure there has to be a way of doing this with a bash script but I`ve trying to find out how and I cannot get it.Can someone give me a hand?
__________________
exgfmovies.com, exgfclips.com, datesx.com, gayboards.com and more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Mar 2005
Location: elkektex at gmail
Posts: 1,813
|
Just did it using vim (vi improved,a text editor):
:g/$/s// bye
__________________
exgfmovies.com, exgfclips.com, datesx.com, gayboards.com and more! |
![]() |
![]() ![]() ![]() ![]() ![]() |