10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We have the data looks like below in a log file.
I want to generat files based on the string between two hash(#) symbol like below
Source:
#ext1#test1.tale2 drop
#ext1#test11.tale21 drop
#ext1#test123.tale21 drop
#ext2#test1.tale21 drop
#ext2#test12.tale21 drop
#ext3#test11.tale21 drop... (5 Replies)
Discussion started by: Sanjeev G
5 Replies
2. Shell Programming and Scripting
I have below scenario where i am getting a flat file but with some bad data
incoming data format
id|name|ind|crncy
123|xxx|y|usd
234|yy|n|
456|a|y90.5|vvv|gbp ----bad dataneed to cleanse the bad data above by adding a pipe '|' after 3rd column 'ind' if pipe '|' is not already there
... (1 Reply)
Discussion started by: rakesh5300
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
I want to convert a 3-column data to 3-row data using shell script. Any suggestion in this regard is highly appreciated.
Thanks. (4 Replies)
Discussion started by: sktkpl
4 Replies
4. Shell Programming and Scripting
Hi all,
I need help to add additional data from file2 to existing data in file 1 using awk, sed or perl. the ID in file 1 should match against field $3 in file2
file1
#this is a new game
ID HR_1
BASE1 30
BASE2 37
DETAIL No
TYPE L
@@
ID HR_10
BASE1 6030
BASE2 ... (4 Replies)
Discussion started by: redse171
4 Replies
5. Shell Programming and Scripting
Hi Friends,
How to add if data is in different rows.
Input:
1;20091102;20170930;-9.00;|
1;20091026;20170930;-2.00;|
1;20100720;20170930;-25.00;|
1;20090901;20211227;-10.00;|
Output
9+2+25+10 = 46
Thx
Suresh (4 Replies)
Discussion started by: suresh3566
4 Replies
6. Shell Programming and Scripting
I have a csv file, i need to insert data into csv file at row 6
If row 6 in csv file is emplty then i need to enter s23, if row 6 in csv file has some value in it then i don't have to do any thing.
and i have 100 csv files and and each csv files has 45000 rows of data in it. (1 Reply)
Discussion started by: gaddamshashank
1 Replies
7. Shell Programming and Scripting
Hello
Take a look at following lines.
This is giving me an o/p all in one array where as i want the column to be printed.How can i do it?
e.g
I am getting:
1575028616......
whereas i want
1
5750
28616
I am writing this small piece and trying to get this column o/p in a CSV.
... (1 Reply)
Discussion started by: ak835
1 Replies
8. SCO
I am a 10 years windows person with basic unix training (very basic).
I have a sco server where it originally had 3 physical drives. Drive 0 had to be replaced so I did that but because I am really new to Unix I was afraid to detroy the data on DRIVE 1 and 2, so I took them out when I loaded the... (3 Replies)
Discussion started by: mhenry
3 Replies
9. Shell Programming and Scripting
Dear All,
I want to add Numeric data of my file called temp_f41. But I am not getting how to add them,
My File data are in following format of:
10
39
53
05
37
54
Plz send me code for this
Thanks
Nishant :mad: (3 Replies)
Discussion started by: krishna_sicsr
3 Replies
10. Shell Programming and Scripting
Hey,
i need to write a bash program that can run through a liste of files and then pick up the last access time and modification times and then write them to a file.
If anyone has done something like this before, please help me.
Thanks (5 Replies)
Discussion started by: nbananda
5 Replies