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. 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
3. Shell Programming and Scripting
Hi,
im working on an assignment (airline ticketing system). im kinda having problems with the search function. i want users to be able to search by departure time or by flight. however, my output displays the whole chunk of data instead of what they are supposedly searching for. appreciate if... (1 Reply)
Discussion started by: crazybean
1 Replies
4. UNIX for Dummies Questions & Answers
According to linux hardening guide a PATH variable must not contain . or ..
so i grep the path variable using.
# echo $PATH | grep "."
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# echo $PATH | grep ".."... (2 Replies)
Discussion started by: pinga123
2 Replies
5. 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
6. Solaris
Hello,
we are running Irix 6.5 on our octane/sgi computers - these computers come with an external Sony MOD drive attached via a scsi cable. We have backed info to 2.3 gig MOD disks over the years and woule like to duplicate the MOD's. I believe there are 3 ways to do this:
add a second... (1 Reply)
Discussion started by: drew_holm
1 Replies
7. UNIX for Dummies Questions & Answers
Hello I am new to this forum and have been perplexed by this issue for the last hour of my life, I've tried to search everywhere for a solution to my syntax error, but here is my code.
grep -wvnf 'noise.dat' sample.out | sort
output:
4:Java Swing
5:Swing Java
6:Software Requirements... (2 Replies)
Discussion started by: Gvsumrb
2 Replies
8. Shell Programming and Scripting
Guys,
I am new to scripting. I need help in the following
I have some files like
ls -1
file_5001_1.payor.txt
file_5001_1.addr.txt
I basically need to copy to another files with same format except replacing 5001 with 5006.
output
ls -1
file_5001_1.payor.txt
file_5001_1.addr.txt... (3 Replies)
Discussion started by: jakSun8
3 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