10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
Discussion started by: pchang
19 Replies
2. UNIX for Dummies Questions & Answers
I have a file with a lot of IP addresses in it named "address.list".
address.list looks something like this:
10.77.50.11
10.77.50.110
10.77.50.111
a bunch more addresses
For every IP address I need to grep another file to see if the IP address is in the other file:
for x in `cat... (5 Replies)
Discussion started by: squoggle
5 Replies
3. Shell Programming and Scripting
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies
4. Shell Programming and Scripting
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
1 Replies
5. Shell Programming and Scripting
Contents of my file is:
DI
DI
DIR
PHI
I want to extract only DI. I am using below command
grep -w DI <file>
but it is also extracting DI.
Can i use any other command to extract exact pattern where '[' does not have special meaning (4 Replies)
Discussion started by: nehashine
4 Replies
6. Shell Programming and Scripting
Hi everybody,
I have one requirment,
i have to get the particular server name from a file.
EX:
File contents will be like below..
$cat test.txt
HostAssignments->new("server1",
[
"PS_SERVER",
"REG_SERVER",
"PS_ORACLE",
"OM_G10_AUD",
"OM_G10_CAD",
"OM_G10_CHF",
... (3 Replies)
Discussion started by: raghu.iv85
3 Replies
7. UNIX for Dummies Questions & Answers
I have file named shortlist , and it contains this:
2233|charles harris |g.m. |sales |12/12/52| 90000
9876|bill johnson |director |production|03/12/50|130000
5678|robert dylan |d.g.m. |marketing |04/19/43| 85000
2365|john woodcock |director |personnel... (1 Reply)
Discussion started by: Cecko
1 Replies
8. UNIX for Dummies Questions & Answers
I uploaded a database file to Public_html of a virtual server using Unix and a dedicated ip address. I can reach it by browser in typing the address as xxx.xxx.xxx.xxx/Directoryname/databasename.dat . I am asked what I want to do, download or open.
When I try to reach the file via a program... (2 Replies)
Discussion started by: timmendorf
2 Replies
9. Shell Programming and Scripting
Hi ALL,
I want to search one string “20 “ i.e 20 with space.
But my file where I am searching this “20 “ contain some data like
120 before image file truncated
220 Reports section succeeded
20 Transaction database .prd stopped
220 Reports section completed.
When I search for the... (5 Replies)
Discussion started by: Jeevan Salunke
5 Replies
10. Shell Programming and Scripting
I'm new to this so please bear with me..
I have a program that generates a string of the binary data of an image. (I mean, if I take the output of the program, paste it into a text editor and save with a PNG extension, it's a valid image.)
Now I want to take this string and pipe it into a... (1 Reply)
Discussion started by: matthewwithanm
1 Replies