REV(1) BSD General Commands Manual REV(1)NAME
rev -- reverse lines of a file
rev [file ...]
The rev utility copies the specified files to the standard output, reversing the order of characters in every line. If no files are speci-
fied, the standard input is read.
BSD June 9, 1993 BSD
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 | <committish>... )
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.
List all commits reachable from all refs
Read from stdin, append "(<rev_name>)" to all sha1's of nameable commits, and pass to stdout
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
Written by Johannes Schindelin <Johannes.Schindelin@gmx.de>
Documentation by Johannes Schindelin.
Part of the git(1) suite
Git 1.7.1 07/05/2010 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)