The UNIX and Linux Forums
>
Operating Systems
>
AIX
ls command output in single line
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
ls command output in single line
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-19-2007
reborg
Administrator
Join Date: Mar 2005
Location: Ireland
Posts: 3,821
Quote:
Originally Posted by
robotronic
Code:
ls -1 | awk '{ ORS="|"; print; }'
The -1 option serves no purpose here.
Code:
printf "%s|" *
reborg
View Public Profile
Find all posts by reborg