10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
2. UNIX for Beginners Questions & Answers
This is my problem, I am using the following code to extract the file names with specific strings 0.01:
find ./ -name "*.txt" -exec grep -H '0.01' {} +
It works wonders with a small sample. However, when I use it in a real scenario it produces an empty file -even though I am sure there are... (11 Replies)
Discussion started by: Xterra
11 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I Have 2 files.
file1:
abc.xml.gz
abcd.xml.gz
xyz.xml.gz
X.xml.gz
File2
abc.
x.
cde.
unix.
My requirment is search File1 using File2 and need below ouput. (6 Replies)
Discussion started by: j.vutakanti
6 Replies
4. Shell Programming and Scripting
Hi guys,
I'm trying to search for several strings, which I have in a .txt file line by line, on another file.
So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt.
So far, I've been able to do this, to search for individual strings:
... (1 Reply)
Discussion started by: starriol
1 Replies
5. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
6. UNIX for Dummies Questions & Answers
Hello Team,
There is this situation where there are around 20 *.gz files and i want to search multiple words from all those files.
Example as below :
filea.gz
fileb.gz
filec.gz
now i want to search words "hi" and "hello" from all these 3 files without... (4 Replies)
Discussion started by: varun87
4 Replies
7. Shell Programming and Scripting
Hi, how do I match a particular element in a list and replace it with blank?
awk 'sub///' $FILE
list="AL, AK, AZ, AR, CA, CO, CT, DE, FL, GA,
HI, ID, IL, IN, IA, KS, KY, LA, ME, MD,
MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ,
NM, NY, NC, ND, OH, OK, OR, PA, RI, SC,
SD, TN, TX, UT, VT, VA, WA,... (2 Replies)
Discussion started by: grossgermany
2 Replies
8. Shell Programming and Scripting
Want unix script to search a list of strings (stored line by line in a file), search all the matching lines of files under directories and subdirectories in different unix machines(not one box diff boxes - all the unix box names and username/password are stored with a comma delimitor in flat file)... (2 Replies)
Discussion started by: adminuser
2 Replies
9. Shell Programming and Scripting
Hi all,
I have a file looks something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~
aaaa
bbbbbb
ccc
dddddddd
~~~~~~~~~~~~~~~~~~~~~~~~~
I will like a script that can
echo line1
export line1 as env variable
echo line2
export line2 as env variable
etc
etc
Thanks in advance (3 Replies)
Discussion started by: Avatar Gixxer
3 Replies
10. UNIX for Advanced & Expert Users
I have a file (file1) which is like
host1
host2
host3
host4
the list goes on............
Now I want the above lines in files to be compared with files under
/opt/new/
File names are as below:
Dev
Prod
QA
And suppose host1 from file1 is found under Dev(file under /opt/new)... (2 Replies)
Discussion started by: sriram003
2 Replies