10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am looking for grep command to search the following in files of .cpp/.h of a directory and its sub-directories.
1. (char *)
2. (int *)
3. (float *)
Like above pattern i need to search in all the files and list.
I am using for example... for char*/const char*
$egrep -Rwin... (2 Replies)
Discussion started by: vijaya_svk
2 Replies
2. Shell Programming and Scripting
Hi All,
Need your help in resolving the below issue.
I've a file called "data.txt" with the below lines:
TT: <tell://me/sreenivas>
<tell://me/100>
<tell://me/500>
TT: <tell://me/sudheer>
<tell://me/300>
TT: <tell://me/sreenivas>
<tell://me/200>
TT:... (6 Replies)
Discussion started by: raosr020
6 Replies
3. Shell Programming and Scripting
Am in need of your help to get the desired output.
nameSECURITY.SERVICES.CONFIG:GETVALUEisPrefetchedNsAccessLast2013-09-13 10:50:13 MESTsAccessTotal1sRunningcHitLastnamePUBLIC.SERVER:INVOKEisPrefetchedNsAccessLast2013-09-17 15:02:05... (5 Replies)
Discussion started by: rocky2013
5 Replies
4. UNIX for Advanced & Expert Users
grep -E '^(++){5}5000' <file_name>
this command searches value 5000 in only 6th column from provided file where pipe ( | )is delimiter which separate columns... can some one plz explain me what '^(++){5}5000' actually does..? :confused: (1 Reply)
Discussion started by: Killer420
1 Replies
5. Shell Programming and Scripting
Hi All,
i have a file with below contents (single line) pasted below
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="4" ClusterUId="a412e044b1986f00bfb208e0b89d90bf" ClusterName="lab1-cluster"... (3 Replies)
Discussion started by: kamauv234
3 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I need some urgent help with grep.
I'm simply trying to extract the current date from the syslog file, which is "Oct 6" and then grepping this and output the messages to a new log file.
See the below commands and output, even though the log file is created, it is created with all the... (8 Replies)
Discussion started by: wthomas
8 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I'm using Solaris 10, and need help in sorting the below output from the syslog file in descending rather than ascending order.
I would like both the hostname and message columns to be sorted, but right now only the message is sorted and the count column, whose order I would like... (2 Replies)
Discussion started by: wthomas
2 Replies
8. Shell Programming and Scripting
need help in a command. My requirement is that i m grepping the filename based on a pattern in .tar.gz file and then copying the file into some dir
below is what exactly i want to achieve
step 1: grep -l '30017A6800022D1A' CurrentCollectorMeterReadBackup20081007.tar.gz
step 2: file found... (2 Replies)
Discussion started by: ali560045
2 Replies
9. UNIX for Advanced & Expert Users
Hi
i am using grep command to search a string in a file and i am able to find that string in it ..
but moving forward once i find the string i need to remove the 5 lines above that and to remove 2 lines below it .. Just wanted to be clear there should be no lines existing which has a string... (7 Replies)
Discussion started by: ranga27
7 Replies
10. UNIX for Dummies Questions & Answers
Hello:
I'm a very newbee at UNIX/AIX.
What i want to do is to tail a file from the bottom until a certain string is found and write all the lines after the found string to another file.
I've tried out a lot of combination with tail and grep but doesn't find the good one.
Could someone help... (4 Replies)
Discussion started by: Felix2511
4 Replies