![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| aside from paste | kenshinhimura | Shell Programming and Scripting | 3 | 03-10-2008 10:16 PM |
| Bash script pass sentence in block | katrvu | Shell Programming and Scripting | 6 | 02-11-2008 08:04 AM |
| how to find capital letter names in a file without finding words at start of sentence | kev269 | Shell Programming and Scripting | 1 | 04-10-2006 06:35 PM |
| Extracting certain data from a sentence | dbrundrett | Shell Programming and Scripting | 7 | 12-17-2003 08:22 AM |
| grepping for a sentence | eloquent99 | UNIX for Dummies Questions & Answers | 2 | 04-23-2003 11:40 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
paste a sentence
Hi,
I have a big file like this: BBR 0004186 916 H $$a BBR 0031086 916 H $$a BBR 0032551 916 H $$a BBR 0035481 916 H $$a I would like to add globally a senetence : BBR 0004186 916 H $$a new acquisition How i'll do it? Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Where and/or which part do you want to add??
I.e. Do you want to add new acquisition to the end of every line. Please give a bit more information.
__________________
The dead stay dead and the living only wait to join them........ |
|
#3
|
||||
|
||||
|
You could use sed....
sed 's/$/new acquisition/' file1 > file2 ..or awk... awk '{print $0 "new acquisition"}' file1 > file2 |
|
#4
|
|||
|
|||
|
you can do it in the vi editor
vi filename :g/$$a/s//$$a BBR 0004186 916 H $$a/g this will change all the $$a to $$a BBR 0004186 916 H $$a. try this and come out raguram R
__________________
raguram r |
|||
| Google The UNIX and Linux Forums |