9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
2. Solaris
Hi,
I want to find for a particular word which is existing in different files and folders under the parent directory. What command can I use to retrieve all the file names which is having the word. (1 Reply)
Discussion started by: rogerben
1 Replies
3. Shell Programming and Scripting
Hi all,
I am trying to write a script substituting one word in a particular file with another word (sed) but I'm having trouble creating the backup file. The following are my instructions:
The Unix program sed is useful for making simple substitutions throughout an entire file. But one of... (0 Replies)
Discussion started by: Hoppy56
0 Replies
4. Shell Programming and Scripting
Hi All,
I have a issue in pulling some heavy records , I have my input file has 10,000 records which i need to compare with daily appended log files from (sep 1st 2009 to till date) . I tried to use grep fgrep and even sed , but the as time is factor for me , i cannot wait for 5 days to get the... (3 Replies)
Discussion started by: rakesh_411
3 Replies
5. Red Hat
To find a word from multiple level files:
"find . -type f -exec grep {} +" is working on UNIX machines but not working on Linux machine. What is the equivalent command on Linux to find the word from multiple level files?
Input is appreciated. (3 Replies)
Discussion started by: ywu081006
3 Replies
6. Shell Programming and Scripting
I am trying to substitute something with sed and what I want is to substitute a whole
word and not part of a word. ie
sed 's/class/room/g' filename
will substitute both class and classes into room and roomes which is not what i want
Grep for instance can use the -w option or <>
grep -w... (7 Replies)
Discussion started by: gikay01
7 Replies
7. Linux
Ok this is last question of the day from my side .
I have this file and I want to replace the last letter " , " with " ) " .
The input file is
#cat zip.20080604.sql
CONNECT TO TST103 ;
SET SESSION_USER OPSDM001 ;
SET CURRENT SCHEMA OPSDM001 ;
CREATE VIEW OPSDM001.vw_zip SELECT (
... (4 Replies)
Discussion started by: capri_drm
4 Replies
8. Linux
Hi I am trying to substitute 2 words on the same line with _S02 as suffix. Like this .
IN "TSOPS09" INDEX IN "TSOPIX09" ;
to
IN "TSOPS09_S02" INDEX IN "TSOPIX09_S02" ;
i used the following code to make the change , it works fine for first substitution not the second one .
... (6 Replies)
Discussion started by: capri_drm
6 Replies
9. Shell Programming and Scripting
I have data that looks something like this:
term1/term2/2005-12-01 13:20:30/term4
I need to make it look like this:
term1/term2/20051201132030/term4
I am using a csh script. I have tried to do it by first converting the date/time to the format in which I want it, and then replacing it... (1 Reply)
Discussion started by: oprestol
1 Replies