10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to figure out to find word count of each word from my file
hi how are you
hi are you ok
sample out put
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
2. Shell Programming and Scripting
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
3. Shell Programming and Scripting
Hi I have a file passwd_exmpl that contains:
sync:x:5:0:sync:/sbin:/bin/sync... (5 Replies)
Discussion started by: eladage
4. 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
5. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6. Shell Programming and Scripting
I want to replace a word in a file which occurs after a particular word.
For example :
AND c1 = 'I'
AND c2= '2'
AND c1= 'I'
AND c2= '0'
So in this example i want to replace... (4 Replies)
Discussion started by: ashwin3086
7. 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
8. Shell Programming and Scripting
This is my first post on the forums. So I want to start by thanking anyone who is kind enough to read this post and offer advise. I hope to be an active contributor now that I've found these forums.
I have an issue that I figure would be a good first post..
I have 2 text files... (5 Replies)
Discussion started by: efciem
9. Shell Programming and Scripting
I have a file with lines written somewhat like this.
browse = no
browse = no
cdecec (2 Replies)
Discussion started by: vikas027
10. Shell Programming and Scripting
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky