10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
could you please provide solution to split file and load into different files in shell script.
cat test.txt
"01"|""emp_name"":ram|""emp_sal"":600000|""emp_value"":""CREDITCARD""|""1410"":]
"02"|""emp_name"":syam|""emp_sal"":500000|""emp_value"":""voucher""|""1610"":]|""1510"":]... (7 Replies)
Discussion started by: shabeena
7 Replies
2. UNIX for Dummies Questions & Answers
Guys,
I have an input file
MGC001|108.28|-2.86489|100-120|MANGGAC
MGC002|108.071|-2.69028|80-100|KELAPA KAMPIT
MGC003|108.168|-2.97053|50-80|GANTUNG
MGC007|108.192722222|-2.766138889|0-50|KELAPA KAMPIT
MGC008|108.11075|-3.002666667|0-50|GANTUNG... (10 Replies)
Discussion started by: radius
10 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a csv file that appears as follows:
,2013/03/26,2012/12/26,4,1,"2017/09/26,5.75%","2017/09/26,1,2018/09/26,1,2019/09/26,1,2020/09/26,1,2021/09/26,1",,,2012/12/26,now when i use the split function like this:
my @f = split/,/; the split function will split the data that is... (2 Replies)
Discussion started by: WongSifu
2 Replies
4. Shell Programming and Scripting
I need to split a file if it is over 2GB in size (or any size), preferably split on the lines. I have figured out how to get the file size using awk, and I can split the file based on the number of lines (which I got with wc -l) but I can't figure out how to connect them together in the script.
... (6 Replies)
Discussion started by: ssemple2000
6 Replies
5. Shell Programming and Scripting
Hello everybody,
My first time here and my english is not very good I hope you understand me.
I'm trying to read a file that contains two zip archive names.
Here my file content is:
package1.zip package2.zip
At the end of the line there is a \n character.
I read this file from a... (2 Replies)
Discussion started by: Aurea
2 Replies
6. Shell Programming and Scripting
I have a problem which I would like to solve by using UNIX power and inspired minds around world. Here is the problem
I have a text file and it has data as follows
1X.....................1234567890123456789T1234598765XT1 (header)
1Z01............(sub HEADER)
P100001............
Q1........... (4 Replies)
Discussion started by: ask.chowhan
4 Replies
7. Shell Programming and Scripting
hlow all,
need your advice
i have sample.txt
1252468812,yahoo,3.5
1252468812,hotmail,2.4
1252468819,yahoo,1.2
1252468812,msn,8.9
1252468923,gmail,12
1232468819,live,3.4
1252368929,yahoo,9.0
1252468929,msn,1.2now i want filtering with awk so output will like this
12524_log.txt... (2 Replies)
Discussion started by: zvtral
2 Replies
8. Shell Programming and Scripting
hi guys
i have this very messy script, that looks in /var/log/messages.all for an error and reports if it finds the key works
how can i get it to look at more then one file, i.e /var/log/message.all *
so it looks in old logs as well
thanks
exit 0 if (isRenderNode(hostname));
my... (4 Replies)
Discussion started by: ab52
4 Replies
9. Shell Programming and Scripting
Hi,
I have file: data.log.1
### s1
main.build.3495
main.build.199
main.build.3408
###s2
main.build.3495
main.build.3408
main.build.199
I want to read this file and store in two arrays in Perl.
I have following command, which is working fine on command prompt.
perl -n -e... (1 Reply)
Discussion started by: ashvini
1 Replies
10. Shell Programming and Scripting
Hi,
I'm experiencing difficulty in loading an XML file to an Oracle destination table.I keep running into a memory problem due to the large size of the file.
I want to split the XML file into several smaller files based on the keyword(s)/tags : '' and '' and would like to use a Unix shell... (2 Replies)
Discussion started by: bayflash27
2 Replies