10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a dictionary of over 400,000 words with the following structure
The database contains single words as well as phrases. To train the data, I need only mappings with out a space i.e. where both source and target do not have any space in between.
I use Ultraedit as... (4 Replies)
Discussion started by: gimley
2. Shell Programming and Scripting
I have a file with the below format (ABC.TXT) :
I need to write a script where it will check for : blank lines (between rows,before... (6 Replies)
Discussion started by: chatwithsaurav
3. Shell Programming and Scripting
Hi gurus ,
I have two files and i want to perform different action based on the condition if both or either is empty
I have tried the below bt its not... (4 Replies)
Discussion started by: r_t_1601
4. Shell Programming and Scripting
JCJMMUJMMUB018 ... (0 Replies)
Discussion started by: sususa
5. Shell Programming and Scripting
I have a file.txt which seems like having three lines.
wc -l file.txt
In fact, once it is open in text editor, this file has four lines where the last line is empty. how can i delete this last empty line of the file.txt? I tried the codes below so far but they... (6 Replies)
Discussion started by: senayasma
6. Shell Programming and Scripting
I want to make a script which says if a text file is empty or not.
I tried two ways of making it, but I have problems with both of them.
Now I think that the better way is the ls -s solution (considering that an empty text file has a 0 weight, because "cat file.txt" fails when file is... (4 Replies)
Discussion started by: Link_
7. Shell Programming and Scripting
How do I check if a file is empty in a sh script
I want to test in my shell script if the output file is empty and if it is do one thing and if it isnt empty do another?
any ideas? (8 Replies)
Discussion started by: stolz
8. UNIX for Dummies Questions & Answers
I am new to unix worldd .
I need to check a file1 if its empty or not.
If its empty then return a non zero value say 99
could you pls let me know the perl script for this. (2 Replies)
Discussion started by: mavesum
9. UNIX for Dummies Questions & Answers
I have problem !!!
I need to check number of records in a file and if it is zero or file is empty i need to do some task.
if ; then
echo "File s empty"
echo "Not empty"
so how to check this condition.
I used wc -l < filename.txt => 1 for zero records
same result... (1 Reply)
Discussion started by: shreekrishnagd
10. Shell Programming and Scripting
I want to do following task. Kindly suggest.
In my script every hour one file is genarated. say xyz.txt.
Now if this file contain some data then i want to do task A and if file is blank then i want to do nothing.
Kindly help me to do this.
jaydeep (5 Replies)
Discussion started by: jaydeep_sadaria