The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
help with ls commad
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
help with ls commad
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-04-2008
vbe
Moderator
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,585
Not sure I uderstood your question:
var1=`ls -ltr $1 | tail-1`
echo $var1
---
Perhaps you are trying to achieve the output of:
ls -ltr $1 | head -1
vbe
View Public Profile
Find all posts by vbe
Find vbe's past nominations received
Find vbe's present nominations given