Sponsored Content
Top Forums Shell Programming and Scripting conversion of input date in reverse order Post 302566377 by suryanarayana on Thursday 20th of October 2011 09:01:38 AM
Old 10-20-2011
conversion of input date in reverse order

Dear all,

I am having date as input 01-08-2011 ...i want to convert it by removing - (hyphens) in reverse order...i.e 20110801


can u please help me
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sort a file in reverse order

I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last.. eg. Sample file 1 h a f 8 6 After sort should look like 6 8 f a h 1 (11 Replies)
Discussion started by: frustrated1
11 Replies

2. UNIX for Dummies Questions & Answers

sort -reverse order

I need to sort the particular column only in reverse order how i can give it.. if i give the -r option the whole file is getting sorted in reverse order. 1st 2nd col 3rd C col 4th col 5th col ------------------------------------------- C... (7 Replies)
Discussion started by: sivakumar.rj
7 Replies

3. Shell Programming and Scripting

cut a field, but with reverse order

Hi Everyone, I have one a.txt: a b 001 c b b 002 c c c, not 002 c The output should be 001 002 002 If i use cut -f 3 -d' ', this does not work on the 3rd line, so i thought is any way to cut the field counting from the end? or any perl thing can do this?:confused: ... (3 Replies)
Discussion started by: jimmy_y
3 Replies

4. Shell Programming and Scripting

How to get fields in reverse order?

i am having lines like below seperated by "|" (pipe) abc|xyz 123|567 i have to get the above in reverse order xyz|abc 567|123 Pls help (5 Replies)
Discussion started by: suryanarayana
5 Replies

5. UNIX for Dummies Questions & Answers

printing fields in reverse order

command/script(apart from awk) to print the fields in reverse order that is last field has to come first and so on and first field has to go last Input store-id date sale ............. ............. ... (3 Replies)
Discussion started by: tsurendra
3 Replies

6. Shell Programming and Scripting

print in reverse order

Hi, I want to print the item in reverse order such that the output would look like 00 50 50 23 40 22 02 96 Below is the input: 00 05 05 32 04 22 20 69 Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Discussion started by: reignangel2003
5 Replies

7. Shell Programming and Scripting

Sorting strings in reverse order

Hello, I have a large database of words and would like them sorted in reverse order i.e. from the end up. An example will make this clear: I have tried to write a program in Perl which basically takes the string from the end and tries to sort from that end but it does not seem... (5 Replies)
Discussion started by: gimley
5 Replies

8. Shell Programming and Scripting

Delete records in reverse order

Hi all, i have dynamic file 'xyz.txt', records always look likes below format ... 0000021 RET 31-MAR-1984 FAP 0000021 DTA 14-JAN-2003 CNV 0000021 DTA 25-MAR-2012 DTA 0000021 DTA 26-MAR-2012 DTA ################################################# 0000021 DTA ... (4 Replies)
Discussion started by: krupasindhu18
4 Replies

9. UNIX for Beginners Questions & Answers

Issues with sorting in reverse order

I have a unix script that outputs a summary file to the mac desktop. The file is called summary.txt I am trying to configure such so that the summary.txt file lists the content contained within such in reverse sort order. I have used sort -r but it does not seem to work. I would be... (8 Replies)
Discussion started by: Braveheart
8 Replies
RA_BMP(1)						      General Commands Manual							 RA_BMP(1)

NAME
ra_bmp - convert RADIANCE picture to/from Windows BMP image SYNOPSIS
ra_bmp [ -b ][ -g gamma ][ -e spec ][ -p xr yr xg yg xb yb xw yw ] [ [ input|- [ output ] ] ra_bmp -r [ -g gamma ][ -e +/-stops ] [ [ input|- [ output ] ] DESCRIPTION
Ra_bmp converts between RADIANCE and a Windows BMP image. During forward conversion, the -b option produces 8-bit grayscale output rather than 24-bit RGB. The -g option specifies the exponent used in monitor gamma correction; the default value is 2.2. The -e option specifies a tone-mapping method or exposure compensation. If the argument is one of the special words "auto", "human", or "linear", the image will be tone-mapped with histogram adjustment, human vision simulation, or an averaged linear exposure, respectively. (These words may be abbreviated by one or more letters.) Otherwise, the exposure specification is interpreted as a linear compensation value in integer f- stops, which must be proceeded by a '+' or '-'. The CRT color output primaries may be specified with the -p option. The -r option invokes a reverse conversion, from a Windows BMP image to a RADIANCE picture. Tone-mapping and monitor primaries are not supported for reverse conversion. Ra_bmp can accept 16-bit or color-mapped BMP files on input, but cannot not produce them on output. A hyphen ('-') may be specified to indicate standard input for either forward or reverse conversion so that an output file may be speci- fied. If the BMP input is taken from the standard input or sent to the standard output without tone-mapping, then the scanlines may be reversed from their usual ordering. Reversed scanlines sometimes causes difficulties for programs attempting to interpret the resulting RADIANCE picture or BMP image, which may be rejected or displayed inverted. AUTHOR
Greg Ward SEE ALSO
pfilt(1), ra_ppm(1), ra_pr(1), ra_pr24(1), ra_t8(1), ra_t16(1), ra_tiff(1), ximage(1) RADIANCE
3/25/04 RA_BMP(1)
All times are GMT -4. The time now is 03:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy