Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Trim and Timestamp
Name: anilcgowda Date: August 9, 2005 at 14:38:13 Pacific OS: UNIX CPU/Ram: 1GB
Comment:
Hi,
I have a script in which I'm getting the record count from header field and rowcount from wc -l. I'm matching header count with my rowcount. But, since the header count has zeros in the beginning, the match is not successful. Example: Header_count=00025 Row_count=25. Even though both the values are same, due to preceding zeroes, it results with no match. Is there a way to remove the preceding zeroes from this variable?
Also, I want to add the Timestamp at the end of a variable in the script. How to add the timestamp? Ex. FileName=header_file_TIMESTAMP... I was timestamp in the place of TIMESTAMP in the above filename.
Summary: Hi, I am spooling a list of file names from to a file using 'select name from v$archived_log' I am getting a file name with whole path like /oracle/..../.../arch12.arc. I want to trim and get only the...
Summary: Thankyou .But the problem here is , I have thousands of file for different plants and timestamp, I need to retain the latest file for all the plant code. sample_1006_045600.txt sample_1009_045500.tx...
Summary: I need to copy files off a Unix box to a WinXP box which I am currently doing using FTP, but I need a way in which to retain the date/timestamp of the original file. Anyone out there know of a way to...