10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I tried searching the forum for this, and I read numerous suggestions here and even on other forums, and I cannot get this to want the way that I need it to. I tried grep -W / -f to no luck. Here is what I have. I have a list of file names-
FILE1-FILE1TEST,FILE1RELATION... (7 Replies)
Discussion started by: jeffs42885
7 Replies
2. Shell Programming and Scripting
Hello!
I have a sample code in which a grep is being performed from multiple files with a date format in their naming convention. Here the script:
#! /usr/bin/bash
cd /IN/service_packages/SMS/cdr/received
MYDATE=`date +"%Y%m%d%H%M"`
#get the value then divide by 60
#DAPS_SLC01... (3 Replies)
Discussion started by: nms
3 Replies
3. Shell Programming and Scripting
Hi,
I have a list of zipped files. I want to grep for a string in all files and get a list of file names that contain the string. But without unzipping them before that, more like using something like gzcat.
My OS is:
SunOS test 5.10 Generic_142900-13 sun4u sparc SUNW,SPARC-Enterprise (8 Replies)
Discussion started by: apenkov
8 Replies
4. Shell Programming and Scripting
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Discussion started by: JC_1
4 Replies
5. UNIX for Dummies Questions & Answers
How Do I find all files in /home that are not .jpgs? (5 Replies)
Discussion started by: glev2005
5 Replies
6. Shell Programming and Scripting
Hi all,
I have a directory containing many subdirectories each named like KOG#### where # represents any digit 0-9. There are several files in each KOG#### folder but the one I care about is named like KOG####_final.fasta. I am trying to write a script to copy all of the KOG####_final.fasta... (3 Replies)
Discussion started by: kmkocot
3 Replies
7. UNIX for Dummies Questions & Answers
I have a file that looks like this:
Name=TOM
abcded
asdfas
fkoiaerj
inadhah
Name=Chris
23nafds
vasdkfna
afadns
afdadsfa
aaaaaa
bbbbbb
cccccc
I would to search for the string 'bbbbbb', then I would like to search above that string for the 1st occurrence of "Name" and not the other... (7 Replies)
Discussion started by: doza22
7 Replies
8. Shell Programming and Scripting
Hi
i have t1 file like:
HiPerformance: Recalculation Dates|234|
HiPerformance: Recalculation|456|
.....
.....
....
...
i wrote grep command like:
grep "HiPerformance: Recalculation" t1
out put:
HiPerformance: Recalculation Dates|234|
HiPerformance: Recalculation|456|
But i... (3 Replies)
Discussion started by: koti_rama
3 Replies
9. Shell Programming and Scripting
hi,
i have to grep for string in file but i want to find the group of this line so i must get lines before and select the group.
the file look like :
####name_groupe1
alphanumeric line
alphanumeric line
..
####name_groupe2
alphanumeric line
alphanumeric line
..
####name_groupe3... (4 Replies)
Discussion started by: kamel.seg
4 Replies
10. AIX
I want to serch for a string in all the files in the root directory. i want the search to be limited to only the files in the directory i.e the search to be done only in the files not in the sub directory.
the approaches tried are
1)grep "pattern string"
this command was serching the... (3 Replies)
Discussion started by: Subbu_Angeline
3 Replies