Search Results

Search: Posts Made By: Shaishav Shah
3,030
Posted By Shaishav Shah
Partial File Transfer using scp
I am trying to transfer a zip file of around 30 MB in my automation script using scp from system A to B.

When I manually do scp, file is complete transferred but when automation shell script runs...
1,641
Posted By Shaishav Shah
in windows, the file was opened with UTF-8 and in...
in windows, the file was opened with UTF-8 and in unix system , it was
en_US.UTF-8, found by echo $LANG
1,641
Posted By Shaishav Shah
Encoding of a text issue
I created one file on windows system and is visible as :

TestTable,INSERT,žvečilnin1ईगल受害者是第,2010-02-02...
4,052
Posted By Shaishav Shah
alright. awk statement works like a charm. ...
alright.
awk statement works like a charm.
Thanks a bunch for spending time and giving a faster solution.
Thanks again. :-) :b:
4,052
Posted By Shaishav Shah
Can you give me an idea on how we can achieve...
Can you give me an idea on how we can achieve through sed ?
4,052
Posted By Shaishav Shah
We need not worry about specific element. As if...
We need not worry about specific element. As if input number is 1, it will search for first occurance of <startdate> and replace date within that tag. Similarly if input number is 2, it will search...
4,052
Posted By Shaishav Shah
Please see my updated reply. :-)
Please see my updated reply. :-)
4,052
Posted By Shaishav Shah
No they will also not remain same. But will...
No they will also not remain same. But will definitely contain <startdate> and <enddate> tags.
I know awk would be much easier to do, but can't we do it with sed ?
4,052
Posted By Shaishav Shah
No Actual file does not have tags like a,b,c... ...
No Actual file does not have tags like a,b,c...
Actual file has <PRE1>,<PRE2>,<PRE3>......
Also here i mean by single sed command is a one liner command. We can append as many -e,-n but want to...
4,052
Posted By Shaishav Shah
If condition and for loop within sed statement
Hi,

I tried to go through a lot of online material but could not find concrete solution.
My issues is like this :

I've got a input file like this :

<a>
...
3,097
Posted By Shaishav Shah
Shell Command to compare two xml lines while ignoring xml tags
I've got two different files and want to compare them.

File 1 :

HTML Code:
<response ticketId="944" type="getQueryResults"><status>COMPLETE</status><description>Query results fetched...
6,675
Posted By Shaishav Shah
Compare two xml files while ignoring some xml tags
I've got two different files and want to compare them.

File 1 :

<response ticketId="944" type="getQueryResults"><status>COMPLETE</status><description>Query results fetched...
3,512
Posted By Shaishav Shah
First Occurance : sed -n -e...
First Occurance :

sed -n -e 's/.*<listen-address>\(.*\)<\/listen-address>.*/\1/p' "Your_file.xml" | head -1

Nth Occurance :

sed -n -e 's/.*<listen-address>\(.*\)<\/listen-address>.*/\1/p'...
11,922
Posted By Shaishav Shah
Here attachment files are being read from...
Here attachment files are being read from REPORTS.LOG which has got file names as :

/home/jboss/temp/a.html
/home/jboss/temp/temp/b.html

Here files are separated by new line character "\n".
...
11,922
Posted By Shaishav Shah
The workaround of putting attachments list at...
The workaround of putting attachments list at last does not work always. There is something that breaks the attachments and appends ip to broken substrings but not sure what :confused:
8,023
Posted By Shaishav Shah
Thanks dude. Though I already tried this...
Thanks dude.

Though I already tried this approach by redirecting output to TEMP.sh from the script running in background and then calling ./TEMP.sh from the script running in forground.

Though...
Forum: AIX 12-26-2012
18,458
Posted By Shaishav Shah
Consider $1="xyz.html" echo "<head>" >> "$1"...
Consider $1="xyz.html"

echo "<head>" >> "$1"
echo "<title>Testing Result</title>" >> "$1"
echo "</head>" >> "$1"
echo "<body bgcolor="#CCCCCC">" >> "$1"
echo "<table width="100%"...
8,023
Posted By Shaishav Shah
Thanks rangarasan. :confused:
Thanks rangarasan. :confused:
8,023
Posted By Shaishav Shah
Return variable value from a script running in background
I have a script which runs a script in the background. Now the script running in background returns some variable value and i want to catch return value in the parent script.

e.g.
Parent Script...
11,922
Posted By Shaishav Shah
Thanks DGPickett. I shall try this now. ...
Thanks DGPickett.

I shall try this now.

---------- Post updated at 12:55 PM ---------- Previous update was at 11:09 AM ----------

Not sure what's going wrong. Above solution works...
11,922
Posted By Shaishav Shah
Multiple attachments using mutt
I am trying to attach multiple files using mutt command, and all file names to be attached are taken from a flat file. and mutt command is called from a bash script when :

1. Script execution is...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 06:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy