10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all - I'm completely stumped by a script I'm working on...
The short version is I have a file called 'lookup' and in it are hundreds of names (first and last). I have a script that basically allows the user to enter a name, and what I need to have happen is something like this:
Record... (8 Replies)
Discussion started by: sabster
2. Shell Programming and Scripting
Hi All ,
I have a file which contains data(comma separated) in below format :
500,Sourav ,kolkata ,8745775020,700091
510 ,madhu ,mumbai ,5698756430 ,500042
515 ,ramesh ,blore ,8769045601 ,400092
I want to add unique sequence number at the start of each... (7 Replies)
Discussion started by: STCET22
3. Shell Programming and Scripting
Given a file like this:
I need to get to
somestandardtext abc1 morestandardtext
somestandardtext def2 morestandardtext
somestandardtext ghi3 morestandardtext
Notice that in addition to the standard text there is the line number added in as well. What I conceived is... (4 Replies)
Discussion started by: edstevens
4. Shell Programming and Scripting
I have a text file that has data like:
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
ID... (16 Replies)
Discussion started by: say170
5. Shell Programming and Scripting
I have a file with multiple lines like below, I need to check on column starting with #prototype if it has the .Number.txt extension do nothing else add 1.txt extension.
Jdbc_app_data :- sample data
#prototype= sample data from test.1.txt
application_id=122135... (4 Replies)
Discussion started by: gaur.deepti
6. UNIX for Dummies Questions & Answers
I need to create a script which checks for a particular file for eg.kumar1.txt.
If kumar1.txt is already exist the script should increment the file name as kumar2.txt and so on.
Thanks & Regards,
Kumar66 (2 Replies)
Discussion started by: kumar66
7. Shell Programming and Scripting
I have posted this before but did not get many replies, so here it goes again.
I have several files name like this
If the file extension is 1a, I woould like to add at the beggining of the file the following sequence
If the file extension is 1b, thn the entry that should be added is the next... (2 Replies)
Discussion started by: Xterra
8. Shell Programming and Scripting
I have a file name -HRCFTSIN05PLA1602100430444444
my requirement is to split the file in 10000 count each file and to add sequence number.rch at the end of each file.
output should be in this format
HRCFTSIN05PLA160210043044444402.rch... (4 Replies)
Discussion started by: abhigrkist
9. Shell Programming and Scripting
Can someone please help.
I need to add a sequence number to the start of each line of a file.
It needs to be 6 characters long. ie 000001 next line starts 000002 etc. (4 Replies)
Discussion started by: Dolph
10. Shell Programming and Scripting
I have a list of all order number like below:
For the above, all number must in 5 digits and I need to add one into the number and output a new list like below:
How can write a... (20 Replies)
Discussion started by: happyv