10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
so i have a txt file containing word like "one two three four plus four five six".
I want to save every word in the file into a variable, and then use that variable to generate real numbers and apply the arithmetic value on them.
example: the txt files becomes 123 + 456 and... (10 Replies)
Discussion started by: azaiiez
I have to write a C Code to read a word from file and Keep track of the number of word occurrence in each line and total in the file. Maintaining total count is easier but maintaining per line count is what I am struggling to achieve. I thought of maintaining linked list... (3 Replies)
Discussion started by: anand.shah
3. Shell Programming and Scripting
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
how can I know that the word in test file end at this point .... I have an Idea to search on ' ' , '\n' or '\0' but don't know what function can store the string before those characters ..
help please ! (3 Replies)
Discussion started by: fwrlfo
5. Shell Programming and Scripting
Hi i am new in scripting
how i can get 2 elements from first line of delimited txt file in shell scripts.
can anyone plse help?... (3 Replies)
Discussion started by: sushine11
6. Shell Programming and Scripting
Hi, I need a script to read last word of the line and out put in some temp file.
it can contain any word like:
My name is Harry.
My zip code is 24490
or it can be
My secret code is 024H
I just need last word of the line (Harry, or 2440 or 024H)
Thanks for the posts below.... (10 Replies)
Discussion started by: HarryReid
7. UNIX for Dummies Questions & Answers
how to read the second word of the first line from a text file. Text file does not have any delimiters in the line and has words at random locations. Basically the text file is a log and i want to capture a number that is in second position.
Appreciate your help
Venu (1 Reply)
Discussion started by: venu
8. Shell Programming and Scripting
File having data in following format :
file name : file.txt
I want to read this file so that I can split these into two paramaters i.e. 111111 & name1 into two different variables(say value1 & value2).
i.e val1=11111 &... (2 Replies)
Discussion started by: sjoshi98
9. Shell Programming and Scripting
file1: has all words to be searched.
File2: has all file names to be searched.
Outfile: should have all found lines.
Logic: Read each word in file1 and search each file in the list of File2; if the... (8 Replies)
Discussion started by: clem2610
10. Shell Programming and Scripting
I want to read each word in a file.
start at a particular character say '%' and read till another character say ')' (these two characters form the part of my file).
then i want to delete the whole sentence(that is between '%' and ')' ) and keep the remaining file intact.
Its urgent... (1 Reply)
Discussion started by: kaps_jhaver