10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
I have a set of files Xfile0001 - Xfile0021, and the content of this files (one at a time) needs to be printed between some line (lines start with word "Generated") that I am extracting from another file called file7.txt and all the output goes into output.txt. First I tried creating a for... (5 Replies)
Discussion started by: jaldo0805
3. UNIX for Dummies Questions & Answers
Hi, i am new to unix shell scripting and i need a script which would search for a particular word in all the files present in a directory. The output should have the word and file path name. For example: "word" "path name".
Thanks for the reply in adv,:) (3 Replies)
Discussion started by: virtual_45
4. Shell Programming and Scripting
I have a file which has the following
I want to do something like this
I need to add the 2nd last word to the... (3 Replies)
Discussion started by: matbrow
5. Shell Programming and Scripting
My source is on each line
18.104.22.168 - - "GET /disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=EN&loc=JPN HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR... (5 Replies)
Discussion started by: elamurugu
6. Shell Programming and Scripting
Could some one help me in Printing from matching word to end using awk
I am tester for now
I am tester yesterday
I am tester tomorrow
tester for now
i.e Starting from tester till end of sentence (5 Replies)
Discussion started by: mallak
7. Shell Programming and Scripting
I have list of directory paths in a variable and i want to delete those dirs and if dir does not exist then search that string and get the correct path from xml file after that delete the correct directory. i tried to use grep and it prints the entire line from the search.once i get the entire... (7 Replies)
Discussion started by: dragon.1431
8. Shell Programming and Scripting
Consider this line:
The above line is contained in a variable say 'var' . I want to copy everything after 'driver=' in to another variable say var2.
Please tell me how can this be done. (8 Replies)
Discussion started by: ajincoep
9. UNIX for Advanced & Expert Users
File1 row is same as column 2 in file 2.
Also file 2 will either start with A, B or C.
And 3rd column in file 2 is always F2.
When column 2 of file 2 matches file1 column, print all those rows into a separate file.
Here is an example.
... (6 Replies)
Discussion started by: i.scientist
10. Shell Programming and Scripting
I have a file which has user information. Each user has 2 variables with the same name like
My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Discussion started by: rmsagar