10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am trying to count the number of logical processors from the below output:
# print_manifest | grep "logical processors"
8 cores, 16 logical processors per socket
2 logical processors (2 per socket)
i just want to have below output :
also... (11 Replies)
Discussion started by: omkar.jadhav
2. Shell Programming and Scripting
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3. UNIX for Dummies Questions & Answers
in my file i have somthing likre
i want search only kpk i am using this cmd /kpk ...results it is showing all . any cmd is ther other then this to search exactword in this example kpk it shoulsnot show kpk_* etc
Thanks in Advance
... (2 Replies)
Discussion started by: prakumar
4. UNIX for Dummies Questions & Answers
I need small help from you people.
In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not.
How can I find out the the list of those files which doesn't contain the word "TRACK"?
Siba (4 Replies)
Discussion started by: siba.s.nayak
5. Shell Programming and Scripting
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Discussion started by: yart
6. Shell Programming and Scripting
I am working on script to search some records in a file based on certain fields and each record is a ASCII fixed size. I was using awk to search based on certain condition. But the length of the record is too much that awk is giving
syntax error near unexpected token `('
Request... (5 Replies)
Discussion started by: ysrikanth
7. Shell Programming and Scripting
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
# check if the user has... (1 Reply)
Discussion started by: Shazin
8. Shell Programming and Scripting
can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat"
grep -r "crat" */* ;
is it right ? (3 Replies)
Discussion started by: pranabrana
9. Shell Programming and Scripting
I have a problem in searching a specific pattern in c files.
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl
10. Shell Programming and Scripting
Can you help with the shell script:
I would like to search a fixed width pattern from a file
say for each line from a fixed position and lenght it has to return all rows from the file.
To search the third column for "def" it has to return 1 and 4th rows only
... (2 Replies)
Discussion started by: sbasetty