10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Geeks
I am working on trimming the logs and extracting the XMLs from it. I am facing one problem here.
My XML String is ending with
...........Request></Body></Envelope>S/R
sometimes there is more then just S/R in the end.
I want to delete anything comes after </Envelope>... (3 Replies)
Discussion started by: santy00110011
3 Replies
2. Shell Programming and Scripting
Hi guys got a problem here hope u all can help me. I learn that sed can actually edit a string but you need to know the old attribute to change to new 1.
Example: sed "s/$title:$author/$title:$Nauthor/g"
"Harry Potter - The Half Blood Prince:J.K Rowling:40.30:10:50"
Each delimiter : represent... (4 Replies)
Discussion started by: GQiang
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I hv several files which have hundreds of lines each for example>XYZ.abc01
NNNTCGGTNNNNNCCACACACMYACACACCCACACCCACSCARCAC
I'd like to exculde the first line beginning with ">" and then for the rest of the lines get a count for each string element. So for the above example I would like... (8 Replies)
Discussion started by: pawannoel
8 Replies
4. Fedora
Hi All,
I have a general difficulty in understanding how to control single elements within a string. An example,
XYZ1234 ABCD5678 My expected output is :
ABCD1234 XYZ5678 (swapping subset of string elements of choice)
XYZ37 ACBD1214 (making calculations... (6 Replies)
Discussion started by: pawannoel
6 Replies
5. Shell Programming and Scripting
How can I get my array to understand the double-quotes I'm passing into it are to separate text strings and not part of an element? here's what I'm working with...
db2 -v connect to foo
db2 -x "select '\"' || stats_command || '\",' from db2law1.parallel_runstats where tabname = 'BAZ'"
set... (4 Replies)
Discussion started by: djschmitt
4 Replies
6. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Problem Statement for project:
When an account is created on the CS Unix network, a
public html directory is created in the account's home directory. A default web page is put into that directory.
Some users replace or... (13 Replies)
Discussion started by: peage1475
13 Replies
7. Shell Programming and Scripting
I have a string that looks like this
username|field1|field2|field3
the data has a delimiter of "|"
how can i edit field1, keeping the rest of the data the same
also how can i edit field2 and 3. (3 Replies)
Discussion started by: nookie
3 Replies
8. Shell Programming and Scripting
Hi all,
I'm fairly new to scripting in linux and need some help.
I have an file that looks something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Some comments
# Some comments
# Some comments
# Some comments
# Some comments
# Some comments
abc:/path/to/somewhere:X... (3 Replies)
Discussion started by: Avatar Gixxer
3 Replies
9. Shell Programming and Scripting
I would like to find a list of files in a directory less than 2 days old and put them into an array variable. And then search for each file in the array for a matching string say "Return-code= 0". If it matches, then display the array element with a message as "OK".
Your help will be greatly... (1 Reply)
Discussion started by: mkbaral
1 Replies
10. UNIX for Dummies Questions & Answers
I am trying to edit multiple files from one directory and including all the files in all the sub directories. My string opens each file, puts the text on my screen and does not save the new information to the file. I am using a variable in my script, and wondering if that is what is choking it. ... (1 Reply)
Discussion started by: Skoshi
1 Replies