Search found 7 matches

by Bad_Dream
Sun Jun 24, 2012 4:45 pm
Forum: Scripts & Bash
Topic: Trouble with script to modify txt file
Replies: 2
Views: 841

Re: Trouble with script to modify txt file

ty anakin! and what i meant by replacing answer with * is because it would be easy to use find and replace in gedit to just replace the word answer with * rather than write it into the script because now if i i try to search and replace to add the * between the question and the answer i have nothing...
by Bad_Dream
Sun Jun 24, 2012 2:38 pm
Forum: Scripts & Bash
Topic: Trouble with script to modify txt file
Replies: 2
Views: 841

Trouble with script to modify txt file

i have a different type of trivia question text file now and am unsure how to modify the script i have to place it in the correct format i need. this is the script im trying to modify #!/bin/bash FILENAME="trivia1.txt" while read string do # Start of line parsing. echo $string # Prints out the strin...
by Bad_Dream
Thu Jun 21, 2012 3:32 pm
Forum: Scripts & Bash
Topic: Write a script to edit a txt file ?
Replies: 14
Views: 4354

Re: Write a script to edit a txt file ?

yayyyyyy thank you vincent your solution worked! tytyty
by Bad_Dream
Thu Jun 21, 2012 2:13 pm
Forum: Scripts & Bash
Topic: Write a script to edit a txt file ?
Replies: 14
Views: 4354

Re: Write a script to edit a txt file ?

okeedokee heres the input file im testing with atm turner:What English artist had the forenames Joseph Mallord William ? black:What colour was the Maltese Falcon ? troy:What city fell to the Wooden Horse ? dormouse:Who was asleep between the March Hare and the Hatter ? blue:What colour eyes did The ...
by Bad_Dream
Thu Jun 21, 2012 12:49 pm
Forum: Scripts & Bash
Topic: Write a script to edit a txt file ?
Replies: 14
Views: 4354

Re: Write a script to edit a txt file ?

theres just one problem....the strings dont stay on the same line and for the life of me i cant figure out how to make it stay on the same. ive tried echo -ne and the printf command and managed to get it to stay on the say line with printf but it truncated the strings to the first word...completely ...
by Bad_Dream
Wed Jun 20, 2012 9:13 am
Forum: Scripts & Bash
Topic: Write a script to edit a txt file ?
Replies: 14
Views: 4354

Re: Write a script to edit a txt file ?

awesome wei2912 and to everyone else that responded....gunna try this today ....this is gunna save me hourssssss of tedious editing! tyty :D
by Bad_Dream
Tue Jun 19, 2012 9:58 am
Forum: Scripts & Bash
Topic: Write a script to edit a txt file ?
Replies: 14
Views: 4354

Write a script to edit a txt file ?

im trying to figure out how to edit trivia questions to change them from one format to another the questions are in this format : spring:What season is the setting for Shakespeare's A Midsummer Nights Dream ? and i need them in this format: What season is the setting for Shakespeare's A Midsummer Ni...

Go to advanced search