Below I have an example of an Adobe XML swidtag used to track inventory. I need to parse out relevant information using bash and output that to a new text file.
I am looking to extract something like this from the below sample log file.
10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130
for that I tried something like below and I have no clue how to extract the IP address marked red in the log file to the o/p.
Code:
egrep "10.28.76.15|10.28.86.15" log.file | sed 's/\([^ ]*\).*\(SSLC=.
I have created a Shell Script as below
Sample.sh
echo "Hi there"
I also added cron job in cron tab which is under /etc/crontab as below
* * * * * /home/Sample.sh > /home/Sample.txt
I have created the Sample.txt file in /home/ directory.
I have also checked the permission for read and write for both the file
When I execute the Sample.sh file it works fine.it writes in Sample.txt file
I can get the Java AudioClip class to play sun '.au' sound files fine but I can't get my test wav file to play:
Quote:
file sample.au
sample.au: Sun/NeXT audio data: 16-bit linear PCM, stereo, 8000 Hz
file pop.wav
pop.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
sample.au is a sample au file I got from the inter
Hi Gurus,
I need some help in extracting some of these information and massage it into the desired output as shown below.
I need to extract the last row with the header in below sample which is usually the most recent date, for example:
2012-06-01 142356 mb 519 -219406 mb 1 -77049 mb
Notice in the sampe output below, there a new column called: "Label" being added.
I use eclipse and I want to pick out node mytag text. What should I do to get it?
I create an object of Microsoft.xmlDOM. load a xml file(validation no error).
and objXMLDoc.setProperty "SelectionLanguage", "XPath"
Then use
Set NodeList = objXMLDoc.getElementsByTagName("appointment")
to successfully retrieve a list of nodes with tagName "appointment"
Hello,
I have the following variables set in my env
Code:
echo $MY_XSD_FILE
/home/jak/sample.xsd
echo $MY_INTERVAL_VALUE
4
I want to insert them between the xml tags in my xml file
Code:
cat sample.xml
:::::::::::::::
:::::::::::::::
<property name="FILE"></property>
:::::::::::::::::::::::
::::::::::::::::::::::
<property name="Interval&quo
I am looking to parse a text file output and set variables based on what is cropped from the parsing.
Below is my script I am looking to add this feature too.
All it does is scan a certain area of users directories for anyone using up more than X amount of disk space. It then writes to the output file and emails the output file when done to a number of people that is defined in the script.