10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Here i am writing a script to check for a valid url from a file,i am getting the valid url & i print it in a file and i want to print the invalid url also.how to do that?
#here is my script
URL=$(grep -E -o... (2 Replies)
Discussion started by: Meeran Rizvi
2. Shell Programming and Scripting
My Input file is fixed length record ends with . as end of the line and the character length is 4156
I need to check is there any control characters(like ^M,^Z)
The line will be splitted
nm=substr($0,6,3)... (2 Replies)
Discussion started by: dineshaila
3. UNIX for Dummies Questions & Answers
Can any one help me in below query to search all the invalid characters that UNIX cannot recognize from a file. can we do anything with the help of grep command or any other commands.
Also, i am not sure what are the invalid characters present in the file.
Many thanks in advance.
... (6 Replies)
Discussion started by: schandru
4. Shell Programming and Scripting
How to validate the 4th column,it is date column in the file, if it valid move to valid file else moved invalid file.
i want two file valid.txt and invalid.txt
Thanks, (7 Replies)
Discussion started by: bmk
5. Shell Programming and Scripting
Hi All -
I'm building a script wherein it is design to remove characters that are not accepted on a non-unicode database. Examples are the following: ï,¿,½,Â,é, etc.
I can easily sed those characters one-by-one but I there's a problem when other unicode characters are found. Is there any way to... (1 Reply)
Discussion started by: Jin_
6. Shell Programming and Scripting
I have a source file which has the below data.
targetid,1,2,3,4,5,6... (6 Replies)
Discussion started by: shruthidwh
7. UNIX for Dummies Questions & Answers
there is a file is generated from my program due to undefined filename.
-rw-r--r-- 1 angie angie 8644055 Jun 22 09:17 Ô$ÿÿÿÿÿÆ
may i know how to delete this file..??? thanks in advance... :) (5 Replies)
Discussion started by: chxxangie
8. Shell Programming and Scripting
I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated. (3 Replies)
Discussion started by: beginner82
This is a pretty straight-forward question. Within a program of mine, I have a string that's going to be used as a filename, but it might have some invalid characters in it that wouldn't be valid in a filename. If there are any invalid characters, I want to get rid of them and essentially squeeze... (4 Replies)
Discussion started by: cleopard
10. Shell Programming and Scripting
I am working on AIX. We ftp files to a database. The flat files are having thousands of records and each record is having some 50 to 60 characters(there are fields having certain character length). In addition to some valid ascii characters some invalid characters like Å, å, Ä, ä or pipes creep in which... (5 Replies)
Discussion started by: kanu_pathak