![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading an Input file and searching for occurrences WIHOUT SED or AWK | kartikkumar84@g | Shell Programming and Scripting | 2 | 05-08-2008 05:16 PM |
| Help reading an input file in KSH | zilla30066 | Shell Programming and Scripting | 2 | 02-01-2007 03:45 AM |
| Script for reading an input file | gzs553 | Shell Programming and Scripting | 1 | 10-17-2006 03:55 AM |
| Reading in data sets into arrays from an input file. | sidamin810 | Shell Programming and Scripting | 5 | 07-06-2005 04:54 AM |
| reading from input | nageshrc | Shell Programming and Scripting | 1 | 11-29-2001 03:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Reading Input from File and Duplicates Output
Greetings to all,
I would like to read input from a file and make duplications from it with Linux shell. For e.g. Input file ----------- ABC ABB ABA ------------------------------- Output file ------------ ABC ABC ABC ABB ABB ABB ABA ABA ABA -------------------------- I am trying to build a table from this, any quick help will be appreciated. Thank you. cheers, |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
while read record
do
echo "$record"
echo "$record"
echo "$record"
done < oldfile > newfile
|
|
#3
|
|||
|
|||
|
Hi Jim,
Lets say if I am to duplicate ABC for 200 times, how do I put it into a control loop. Sorry to make you spoon fed, I am trying to help my friend who need a fast solution for her assignment. Thanks a lot. cheers, |
|
#5
|
|||
|
|||
|
Hit my nickname 'noelcantona' in Google, from the hit you get, tell me whether I am looking for a quick solution for my homework.
My friend needs help. He received 4 excels file with 60k of lines everyday. He is lazy to look for another solution and doing the ctrl+c and ctrl+v way. Approximately 2 hours per file. Initially this question is posted in sqlserver forum but he can't use sqlserver, so I am here. I pity him, thats why I am doing my first post here in unix.com. My meaning of assignment here does not mean homework but job assignment. cheers, -NoeL- |
|
#6
|
||||
|
||||
|
#7
|
|||
|
|||
|
Thank you for your quick response.
Appreciate that. cheers, -NoeL- |
|||
| Google The UNIX and Linux Forums |