REV(1) General Commands Manual REV(1)NAME
rev - reverse lines of a file
rev [ file ] ...
Rev copies the named files to the standard output, reversing the order of characters in every line. If no file is specified, the standard
input is copied.
7th Edition April 29, 1985 REV(1)
Check Out this Related Man Page
GIT-NAME-REV(1) Git Manual GIT-NAME-REV(1)NAME
git-name-rev - Find symbolic names for given revs
git name-rev [--tags] [--refs=<pattern>]
( --all | --stdin | <commit-ish>... )
Finds symbolic names suitable for human digestion for revisions given in any format parsable by git rev-parse.
Do not use branch names, but only tags to name the commits
Only use refs whose names match a given shell pattern. The pattern can be one of branch name, tag name or fully qualified ref name.
List all commits reachable from all refs
Transform stdin by substituting all the 40-character SHA-1 hexes (say $hex) with "$hex ($rev_name)". When used with --name-only,
substitute with "$rev_name", omitting $hex altogether. Intended for the scripter's use.
Instead of printing both the SHA-1 and the name, print only the name. If given with --tags the usual tag prefix of "tags/" is also
omitted from the name, matching the output of git-describe more closely.
Die with error code != 0 when a reference is undefined, instead of printing undefined.
Show uniquely abbreviated commit object as fallback.
Given a commit, find out where it is relative to the local refs. Say somebody wrote you about that fantastic commit
33db5f4d9027a10e477ccf054b2c1ab94f74c85a. Of course, you look into the commit, but that only tells you what happened, but not the context.
Enter git name-rev:
% git name-rev 33db5f4d9027a10e477ccf054b2c1ab94f74c85a
Now you are wiser, because you know that it happened 940 revisions before v0.99.
Another nice thing you can do is:
% git log | git name-rev --stdin
Part of the git(1) suite
Git 188.8.131.52 01/14/2014 GIT-NAME-REV(1)
Greetings to all,
I have not been in a unix environment for many years, but I am back.
Question is regarding how to setup or check how it's configured is DNS on a SPARCstation 20 runing SunOS 4.1.4 2 sun4m
I have a DNS server on the network and would like the sun box to use it for it's name... (22 Replies)
My records are like this
I want to extract the value before _97|
BSC_ID=`echo $DATA | cut -f5 -d"_"`
_97|, 4, 11
and by... (16 Replies)
Environment: Sun UNIX
Language: Bourne Shell
I am writing a script that allows user to key in a directory. Example: /root/tmp.
Since the user can key in anything he/she wants, I need to validate to make sure that he/she does not key in anything funny i.e.... (37 Replies)
How can I remove the line beak in the following case if the line begin with the special char “;”?
I want to convert the text to:
I have already tried to use... (31 Replies)
how can i reverse the line order in text files?
(but total number of the lines is not constant )
for example i have a file like this:
i wantto make it like this:
line3 (26 Replies)
I have a file which is
and I have to print the lines between START and END (VIO). In the files there are multiple places where START would be followed by END with few lines in between but I need to print only if START is... (18 Replies)
This is very urgent, I've a data file with 1.7 millions rows in the file and the delimiter is cedilla and I need to format the data in such a way that if the NF in the next row is less than 1, it will append that value to previous line.
Any help will be appricated.
Thanks,... (17 Replies)
Please note, this information was copied from vbseo.com, now showing a database error. This is posted for reference since vbSEO seems to be going out of business:
If you ever need to uninstall vBSEO , you can use the following instructions. Make sure you carefully follow each step.
Login... (37 Replies)
I am new to Unix and I have one challenge and below are the details.
I have pipe delimited text file in that data has span into multiple lines instead of single line.
Data should be like below for entire file.
41|216|398555|77|provided complete NP outcome data ... (21 Replies)
i've vi'ed some scripts in the past and when i did, my screen froze. i had to go to another terminal and kill the vi process before i was able to get back my screen.
how can i replicate this behavior on purpose? i want be able to do this also if the file or script was doubled clicked, say... (17 Replies)
Suppose I have a command:$ cmd1 | cmd2I need to send a message from cmd2 to cmd1 when I receive some a certain message from cmd1. How to do this?
I think that I have to know cmd1's PID and then in cmd2 send a message to this PID. How? (24 Replies)
Instead of the slow and not readable tooltips with the preview of the thread content in forum view, I have added the preview with mouseover (see attached movie).
Let me know if you want a different kind of preview (animation, duration font-color, size, etc,)
<script>... (29 Replies)
This is a bit complicated for me.
My scenario in MyFile:
When string1 is found, grep the line containing string1, go back over that line in upward direction and grep the first line containing string2.
Here is an example:
His email address... (17 Replies)
Hope everybody is having fun with their Solaris installations and not pulling out too much of whatever hair they have left so far. :)
Just for sport, I bought an old Netra 240 used by Northern Telecom Turkish subsidiary Netas here in Turkey. My hope is to turn this into an ugly... (33 Replies)
Now that I'm caught-up on a number of forum tasks, I can turn my attention to the next-generation UserCP (and learn VueJS) for the site.
Today I created this (not yet functional) demo using Vue;
What do you think? (36 Replies)