10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
This is very urgent, I've a data file with 1.7 millions rows in the file and the delimiter is cedilla and I need to format the data in such a way that if the NF in the next row is less than 1, it will append that value to previous line.
Any help will be appricated.
Thanks,... (17 Replies)
Discussion started by: cumeh1624
17 Replies
2. Shell Programming and Scripting
Hi,
I need help with this-
input.txt :
L B white
X Y white
A B brown
M Y black
Read this input file and if 3rd column is "white", then add specific lines to another file insert.txt.
If 3rd column is brown, add different set of lines to insert.txt, and so on.
For example, the given... (6 Replies)
Discussion started by: prashob123
6 Replies
3. Shell Programming and Scripting
File 1 :
anupam
testing
testing123
File2:
hello
world
last try
Output file 3:
anupamhello
testingworld
testing123last try
it will be good in case we are not reading line one by one and appending...I tried like that only but it's taking time to execute.. So asking for bettr... (7 Replies)
Discussion started by: Anupam_Halder
7 Replies
4. UNIX for Dummies Questions & Answers
I have output like this:
USER_ID
12/31/69 19:00:00
12/31/69 19:00:00
USER_ID
12/31/69 19:00:00
12/31/69 19:00:00
USER_ID
12/31/69 19:00:00
12/31/69 19:00:00
USER_ID
12/31/69 19:00:00
12/31/69 19:00:00
...
where USER_ID is a unique user login followed by their login timestamp and... (6 Replies)
Discussion started by: MaindotC
6 Replies
5. Shell Programming and Scripting
Hello,
This is what I am trying to achieve:
file1
a
b
c
d
file2
e
f
g
h (8 Replies)
Discussion started by: smarones
8 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have 50 text files in a directory called "AllFiles"
I want to make a program that will go inside of the "AllFiles" Directory and count the number of lines in each individual text file. Then, the program will calculate how many more lines there are over 400 in each text file and... (7 Replies)
Discussion started by: motoxeryz125
7 Replies
7. Shell Programming and Scripting
Hi All,
I have a file separated by , and each line end with ".If the line doesnt end with " then i need to join the current line and the next one and put them in another file
a, b, c,d"
d,f,g,h
k, l m"
o,p,q,r,t"
ouput :
a,b,c,d"
d,f,g,h,k,l,m"
o,p,q,r,t" (2 Replies)
Discussion started by: gwrm
2 Replies
8. Shell Programming and Scripting
Hi There!
I'm trying to write a shell script which generates a random hexadecimal number and then appends it to the end of lines XX onwards of a certain file. XX is determined by a certain string on the previous line.
Thus for example, if the input file is
I search for the string... (3 Replies)
Discussion started by: orno
3 Replies
9. Shell Programming and Scripting
I have the following data in a file and would like to append the lines inside each section 10, 20, 30, 40, etc... onto one line for each of the sections. Is it possible with SED to make this happen??
10 00039393 DOCK: RECEIVE PART, TAG. D D
... (3 Replies)
Discussion started by: miklacic
3 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
Can someone suggest how to append some word to all lines in file. for example word "Honey" to file f1 with lines:
Mia
Katrin
Elizabeth
to get
Honey Mia
Honey Katrin
Honey Elizabeth
Thanks in advance
Givi (3 Replies)
Discussion started by: giviut
3 Replies