Sponsored Content
Full Discussion: how to reverse file
Top Forums Shell Programming and Scripting how to reverse file Post 302244381 by RahulJoshi on Wednesday 8th of October 2008 12:09:44 AM
Old 10-08-2008
how to reverse file

i am using AIX -ksh
how can i reverse any file ,i have already try tac cmd it is not in AIX:
please help me out.
 

10 More Discussions You Might Find Interesting

1. IP Networking

reverse lookup file problem

I'm trying to create a reverse lookup file. Below are the error messages I get in the messages file, when I start named. Below the error messages is a copy of the reverse lookup file I'm trying to use. I'm using Bind version 8.1.2. Would someone recommend the correct values and if you see any... (2 Replies)
Discussion started by: Westy564
2 Replies

2. 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

3. Shell Programming and Scripting

Need to read a file in reverse

I have to extract data from a text file which is huge in size >>10GB. ie between two strings. If I do an ordinary sed it takes forever to come out. I was wondering if there was anyway to do the entire process in reverse and on finding the relevant string is there any way to break out of the... (5 Replies)
Discussion started by: scorreg
5 Replies

4. UNIX for Dummies Questions & Answers

Reverse Arrange File

I've got hundreds of lines in a file that looks like this: Line1 CCR CCH Line2 ICVM FBO GSC Line3 MKF The result should be like the one below so that I can insert them on our database. Line1 CCR Line1 CCH Line2 ICVM Line2 FBO Line2 GSC Line3 MKF Thanks in advance! (4 Replies)
Discussion started by: The One
4 Replies

5. UNIX for Advanced & Expert Users

How to reverse the contents of a file?

Hi Guys, Am new to this forum .... And also to shell scripting I need a k-shell script to reverse the contents of a file... Please come up with the solutions... With regards, Anand (10 Replies)
Discussion started by: aajan
10 Replies

6. Shell Programming and Scripting

reverse sort file

Hi all I am trying to numerically reverse sort a file but I seem to be having trouble. Example of file contents: text1,1 text2,-1 text3,0 I can sort using sort -k 2n -t, filename without any problems. However I want my results in descending order but using -r in my command... (2 Replies)
Discussion started by: pxy2d1
2 Replies

7. Shell Programming and Scripting

searching reverse in a file

HI all, i have a file called monitor.cfg and have some sections,under these sections many parameter's are there. like..... MONITOR.CFG p1 p2 p3 #comments #comments p4 p5 p6 eof. i want to add some new parameters in section exactly at end of comments using sed. Thanks surya (4 Replies)
Discussion started by: suryanarayan
4 Replies

8. Shell Programming and Scripting

reverse the file content blockwise

Hi, I am having a file with some data present in blocks e.g. ---------------- some data some more data couple of more lines. ---------------- another set of data more lines ---------------- even more data more lines ----------------what I need is reverse the data. like.. ... (4 Replies)
Discussion started by: shellwell
4 Replies

9. UNIX for Dummies Questions & Answers

reverse first field from the file

Hi all, I have a file named file1as 07/25 00:10 d327490 07/25 00:55 d378299 07/25 03:58 d378299 07/25 06:14 d642035 07/25 12:44 c997126 and now i want to reverse the first filed ie 07/25 as 25/07 00:10 d327490 25/07 00:55 d378299 25/07 03:58 d378299 25/07 06:14 d642035 25/07... (5 Replies)
Discussion started by: zozoo
5 Replies

10. Shell Programming and Scripting

Reverse Display of a file

Hi all, Just saw a "sed" format to reverse display the file contents, but am not geting its logic completely. I would appreciate if somebody can explain sed '1!G;h;$!d' < filename All I know in this is that : G will add a new line after every line except first one... (5 Replies)
Discussion started by: dextergenious
5 Replies
THIN_RMAP(g(8)						      System Manager's Manual						    THIN_RMAP(g(8)

NAME
thin_rmap - output reverse map of a thin provisioned region of blocks from metadata device or file SYNOPSIS
thin_rmap [options] {device|file} DESCRIPTION
thin_rmap outputs the reverse mapping stored in the metadata on a device or file between a region of thin provisioned pool blocks and the associated thin provisioned devices. --region <block range> output reverse map -h, --help Print help and exit. -V, --version Output version information and exit. EXAMPLES
output reverse map for pool blocks 5..45 (denotes blocks 5 to 44 inclusive, but not block 45) thin_rmap -r 5..45 /dev/vg/pool DIAGNOSTICS
thin_rmap returns an exit code of 0 for success or 1 for error. SEE ALSO
thin_check(8) thin_dump(8) thin_repair(8) thin_restore(8) thin_metadata_size(8) AUTHOR
Joe Thornber <ejt@redhat.com> Heinz Mauelshagen <HeinzM@RedHat.com> Red Hat, Inc. Thin Provisioning Tools THIN_RMAP(g(8)
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy