I have file.txt
I want to print from the botton, up using sed.
Whats one command I can use to do this? Or will I have to construct a new file that would hold the original file in reverse and then print the reversed file?
Hi,
i have a file which contains PID and wanted to execute kill command. but the thing is, when killing PID's needs to kill PID from bottom to top.
Please help
INPUT
21414 sh -c extract.ksh ASA
21416 /bin/ksh extract.ksh ASA
21428 /usr/bin/perl -w /var/tmp/tempperl.21416 ASA... (4 Replies)
Oracle Linux 6.4
In a directory I have more than 300 files with the extension .log
I want the first 5 and last 5 lines of these .log files to be printed on screen with each file's name.
Expected output :
Printing first 5 and last 5 lines of FX_WT_Feb8_2014.log
!! Authentication... (7 Replies)
Dear friendly helpers,
I want to compare the last line and the 2.nd line from the bottom later with a calculation. The rest of the script is working. What is wrong with my solution?
I want to take the 2nd line from the bottom. And I do not know the command.
TAIL -2 is wrong because it takes... (2 Replies)
Well, it's been a few months now since we started running the toolbar on the bottom with some navigation menu, search, link to code tag video, some social networking tools, etc.
So, the question of the day is:
Should we keep it, maybe develop more toolbar apps, or dump it?
Please vote ... (13 Replies)
Hi Folks
I need a one liner to parse through a log and if the string is found print the line above, the line with the string and the line below.
example:
The ball is green and blue
Billy through the ball higer.
Jane got hurt with the ball.
So if I search for Billy I would need the 3... (1 Reply)
Hi everyone,
I'm new to Linux and bash scripting.
Question? How can I display a menu at the bottom of the screen when displaying a content of a file with the less command?
Like in gvim with bash support, when debugging or testing your script this text "Press enter or type command to... (0 Replies)