10 More Discussions You Might Find Interesting
1. Programming
is there any unix tools that can read the text files like through SQL queries? (ie in Hadoop, Impala DB support flat file query) (1 Reply)
Discussion started by: omykarshan
1 Replies
2. Shell Programming and Scripting
Hi,
Need to sort file based on the number of delimeters in the lines.
cat testfile
/home/oracle/testdb
/home
/home/oracle/testdb/newdb
/home/oracle
Here delimeter is "/"
expected Output:
/home/oracle/testdb/newdb
/home/oracle/testdb
/home/oracle
/home (3 Replies)
Discussion started by: Sumanthsv
3 Replies
3. Shell Programming and Scripting
Hi,
I have a delimited (|) file having millions of rows. Sometime the file comes with less number of delimiters than expected. In this scenario I want to delete the row having unmatched delimiters.
Can anyone help me with the command to achieve this?
Ex:
File1.txt
8039339595113|JIMMY... (2 Replies)
Discussion started by: satyaatcgi
2 Replies
4. Shell Programming and Scripting
hi
i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized
#----------------
FILENAME="$1"
SCRIPT=$(basename $0)
#-----------------------------------------//
function usage
{
echo "\nUSAGE: $THIS_SCRIPT file_to_process\n"... (3 Replies)
Discussion started by: mprakasheee
3 Replies
5. Shell Programming and Scripting
I have a requirement to read the xml file and split the files into two diffrent files in Unix shell script. Could anyone please help me out with this requirement.
Sample file
---------------
0,<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Information... (3 Replies)
Discussion started by: kmanivan82
3 Replies
6. Shell Programming and Scripting
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies
7. Shell Programming and Scripting
I am new to shell scripting and I have to to the following
I have a flat file with storename(lenth 20) , emailaddress(lenth 40), location(15). There is NO delimiters in that file.
Like the following str00001.txt
StoreName emailaddress location... (3 Replies)
Discussion started by: willywilly
3 Replies
8. Shell Programming and Scripting
Now that I have a file that looks something like this;
20050926 Unknown
20050926 MUREXFO
20050926 MUREXFO
20050926 MUREXFO
20050926 Unknown
20050926 KADDUSS
20050926 KADDUSS
20050926 KADDUSS
20050926 MUREXFO
Is there a way in vi that I can search the file and remove any line... (2 Replies)
Discussion started by: morgadoa
2 Replies
9. Shell Programming and Scripting
I am trying to write a script and failing miserably. I have a file that looks something like this;
20050924-155819;Backoffice;1037;0;DDT-TCP/IP;;0;Node
20050924-155902;Unknown;1036;0;DDT-TCP/IP;;0;Node
20050924-155922;FrontOffice;1040;5;DDT-
The desired result is one file containing only... (4 Replies)
Discussion started by: morgadoa
4 Replies
10. UNIX for Dummies Questions & Answers
I use a paste command on my HP/UX which by specifying single quotation marks my output creates a fixed width file with no delimeters:
paste -d '' a b > temp
on the Sun box the same command recieves an error specifying no delimeters provided.
Both are running ksh. (1 Reply)
Discussion started by: r1500
1 Replies