10-23-2015
Please use code tags as required by forum rules!
Last file by which key? I'd think you need some piping like ls | sort | tail.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
Discussion started by: cfoxwell
3 Replies
2. Windows & DOS: Issues & Discussions
Does anyone know how I can find printers from a dos prompt?
I'm trying to create a batch file which cats the printers and
their locations to another file which I will use later in the
script.
Maybe windows has a file from which I may read in this
information?
Thanks! (1 Reply)
Discussion started by: gseyforth
1 Replies
3. Shell Programming and Scripting
Hi
I need a shell command for finding out Firefox browser verion on linux machine.
Waiting for your reply.
Thanks and Regards,
Kammy. (0 Replies)
Discussion started by: kjannu
0 Replies
4. UNIX Desktop Questions & Answers
Would anyone happen to know what to grep for finding the version of the USB ports are on the system through the command line? Thanks. (1 Reply)
Discussion started by: eightysix
1 Replies
5. Shell Programming and Scripting
Hi Friends,
i need a unix command to check the heap space availability on unix system as I am getting following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error occurred during initialization of VM
Could not reserve enough space for... (2 Replies)
Discussion started by: Anji
2 Replies
6. Shell Programming and Scripting
hi guys i have this file with column number 7 as below:
0
1416
49
37
5
3
2
0
0
0
21
0
26 ... (5 Replies)
Discussion started by: npatwardhan
5 Replies
7. Shell Programming and Scripting
I have to write a script to determine whether given command line argument ($1) contains "*" symbol or not, if $1 does not contains "*" symbol add it to $1, otherwise show message "Symbol is not required". For e.g. If we called this script q5 then after giving ,
$ q5 /bin
Here $1 is /bin, it... (5 Replies)
Discussion started by: cynosure2009
5 Replies
8. Shell Programming and Scripting
Hi for all!
sorry guys for my dumb question, but I'm really need help
so,
we have file with many many fields, like this one:
201001002359 blablabla 87654321 201001002359 123,56 77272588300 blablabla/123 91823778544and I wrote awk command
awk '{if($6~/(2588300|2580000|2587021)$/)print}'so,... (8 Replies)
Discussion started by: shizik
8 Replies
9. Shell Programming and Scripting
I am completely stumped. I am attempting to run the cp command in the following context:
cp '/home/spinner0205/directory/directory/*.log' '/home/spinner0205/otherdirectory/combined.txt'
The "directory" contains anywhere from 5-50 something.log files.
I want to copy the contents of these... (4 Replies)
Discussion started by: spinner0205
4 Replies
10. UNIX for Advanced & Expert Users
I am trying to find RAM size in my HP-UNIX server. what command I should use for this?
I am using top command but not clear about below line from top o/p
Memory: 1517080K (471284K) real, 1877692K (751256K) virtual, 8078944K free Page# 1/6 (3 Replies)
Discussion started by: venkatababu
3 Replies
TAIL(1) General Commands Manual TAIL(1)
NAME
tail - deliver the last part of a file
SYNOPSIS
tail [ +-number[lbc][rf] ] [ file ]
tail [ -fr ] [ -n nlines ] [ -c ncharacters ] [ file ]
DESCRIPTION
Tail copies the named file to the standard output beginning at a designated place. If no file is named, the standard input is copied.
Copying begins at position +number measured from the beginning, or -number from the end of the input. Number is counted in lines, 1K
blocks or characters, according to the appended flag or Default is -10l (ten ell).
The further flag causes tail to print lines from the end of the file in reverse order; (follow) causes tail, after printing to the end, to
keep watch and print further data as it appears.
The second syntax is that promulgated by POSIX, where the numbers rather than the options are signed.
EXAMPLES
tail file
Print the last 10 lines of a file.
tail +0f file
Print a file, and continue to watch data accumulate as it grows.
sed 10q file
Print the first 10 lines of a file.
SOURCE
/sys/src/cmd/tail.c
BUGS
Tails relative to the end of the file are treasured up in a buffer, and thus are limited in length.
According to custom, option +number counts lines from 1, and counts blocks and characters from 0.
TAIL(1)