Adding Characters to a Word List


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Adding Characters to a Word List
Prev   Next
# 1  
Old 07-07-2010
Adding Characters to a Word List

If I had a word list with a large amount of words in it, how would I (using a unix command) add, say, 123 to the end of each word?

EDIT: The word list is stored in a large text file. I need a command that applies the ending to each word in the file and saves the result in a new text file.

Last edited by evillion; 07-07-2010 at 02:25 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding word in blank space

Hi, var=QSB SBD SDN SGJ SJP SKB SKD SLP SML SNB SRE SRG STP TAJ UMP UNO VKS VND VNS WAH ZRR I have to put *.sql after every word What I did echo $var>/root/file1.sql sed -i 's/ /*.sql /g' file1.sql cat file1.sql Output QSB*.sql SBD*.sql SDN*.sql SGJ*.sql SJP*.sql SKB*.sql... (9 Replies)
Discussion started by: kaushik02018
9 Replies

2. Shell Programming and Scripting

Search for the word and exporting 35 characters after that word using shell script

I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies

3. Shell Programming and Scripting

Search for the word and exporting 35 characters after that word using shell script?

I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word description excluding weird characters like $$#$#@$#@***$# and without html tags in the new file output.txt. Help me. Thanx in advance. My final goal is to... (11 Replies)
Discussion started by: sachit adhikari
11 Replies

4. Shell Programming and Scripting

adding text before and after a word

Hello, I have a list: i.e: 40331786 50331787 30331788 30331789 30331790 50331791 50331792 50331793 70331794 70331795 70331796 ... ... and I need to add text before and after each number: (2 Replies)
Discussion started by: drbiloukos
2 Replies

5. Shell Programming and Scripting

Adding extra word from file1 to file2

I need to add a word from file1 to file2 accordinggly... file1 contains name of servers and file2 version of server I need that information in a single file so that the format is server_name : version I been trying but havent been able to figure out how to search for a file using sed... ... (14 Replies)
Discussion started by: eponcedeleonc
14 Replies

6. Shell Programming and Scripting

Adding a word into a file.

Dear friends, I am facing a problem with a flat file, to solve that file i need to add certain character in the file which I am not able to do because of "$" sign in the pattern. Situation is as follows. Flat file has word RMM$CART I want to reple this word by RMM$CART DFD The dollar "$"... (5 Replies)
Discussion started by: anushree.a
5 Replies

7. Shell Programming and Scripting

sed for adding word

hello i have a file (myfile) contains line as follows /home/mytarget/myproject i want to add a pattern at the end of this line. my pattern is- /.*mk i want like it - /home/mytarget/myproject/*.mk i tried sed like sed 's/$//*.mk/' myfile > newfilename, but not wrking. pls... (2 Replies)
Discussion started by: shailesh_arya
2 Replies

8. Shell Programming and Scripting

Adding a word in front of a word of each line.

Adding a word in front of a word of each line.In that line only one word will be there. pl help:( (4 Replies)
Discussion started by: Ramesh Vellanki
4 Replies

9. Shell Programming and Scripting

adding text to the end of lines containing a word

I'm new to shell scripting, and need to add a series of commands to the ends of certain lines of text that contain a keyword. Any easy way to do this? Thanks (2 Replies)
Discussion started by: ironwall
2 Replies

10. UNIX for Dummies Questions & Answers

how to get first two characters from a word

Hi guyz, suppose there is a variable a=sachin. I want to have letter 'c' from variable a. I am trying this awk 'substr(sachin,2,1)' but its not working. I cant user cut as it requires a file whereas i have a variable. (4 Replies)
Discussion started by: sachin.gangadha
4 Replies
Login or Register to Ask a Question
CONNECTAGRAM(1) 					      General Commands Manual						   CONNECTAGRAM(1)

NAME
connectagram - word unscrambling game DESCRIPTION
This manual page explains the Debian package connectagram . Connectagram is a word unscrambling game. The board consists of several scram- bled words that are joined together. You can choose the length of the words, the amount of words, and the pattern that the words are arranged in. The game provides a hint option for times when you are stuck, and features an online word lookup that fetches the definitions of each word from www.dict.org. Your current progress is automaticalla saved. Note that this game involves a large and varied word list, some of which may be considered inappropriate for children. You can edit the file containing the word list if you wish to remove words from your game. The location of this file varies by platform. CONFIGURATION
Connectionagram uses the configuration file ~/.config/GottCode/Connectagram.conf . It supports the following options. Each line must be in the format 'option = value'. Count the number of words Length the length of each word FILES
~/.config/GottCode/Connectagram.conf Configuration file with default options. AUTHORS
connectagram was written by Graeme Gott <graeme@gottcode.org> This manual page was written by Tang Ke <tangk@lemote.com>, for the Debian project. May 2010 CONNECTAGRAM(1)