I'm running an IBM AIX box.
I have 'wrong' xml files and waiting for the bug correction I need to manipulate them
The problem is a missing tag.
Now you know that xmls are full of < and > and \ so our scripts just go beserk.
To be on the safe side I want to insert a tag between two known tags:
wrong data
correct data
Instead of using while...read... I tried gsub, but all those fancy delimiters just don't let the command to work properly. Furthermore there are CRLF that are to be taken into account.
Hi All,
I'm trying to run a simple shell program to change all the files named *.cvs to *.txt. I am trying to use WHILE and this is what I have so far:
This changes the first file from *.cvs to *.txt, but it is not cycling through the other files.
My suspicion is that I don't have the... (5 Replies)
when I ssh and run date command, it shows date in 24 hour date format.
But when I telnet the same server, it shows date in 12 hour format, ie. in AM/PM (1 Reply)
Hi,
Following are the results of various date formats:
1. date +%h" "%d
Result: Jun 02
2. date
Result: Tue Jun 2 09:59:15 CDT 2009
If i use the date format as date +%h%d then i am getting the date as 02. I want the day to be displayed as "2" instead of "02".
so my result should... (1 Reply)
Hi,
I want to check the incoming files whether the file is Mac file or dos/windows file in unix shell script.
Sometimes client is posting Mac file and sometimes it is dos file. Could you please help me how to determine/check whether the file is Mac or dos.
Help in advance
Thanks (4 Replies)
Hi,
I have a log file that records date time stamp in this format <Jun 7, 2015 12:56:54 PM EDT>.
The date command give me the date in this format Mon Jun 8 08:40:58 EDT 2015
If the difference in the timestamp in the logfile & the current System datetime stamp is less than 15 mins then... (4 Replies)
I am trying to do a comparison of files based on their last modified date.
I am pulling the first file from a webapp folder using curl.
curl --silent -I http://localhost:8023/conf/log4j2.xml | grep Last
Last-Modified: Tue, 22 Mar 2016 22:02:18 GMT
The second file is on local disk.
stat... (2 Replies)