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 -->
#
2
(
permalink
)
08-19-2007
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
If you have
GNU
ls, try:
Code:
ls -m
The command writes the file listing separated by commas. Otherwise:
Code:
ls -1 | awk '{ ORS="|"; print; }'
robotronic
View Public Profile
Find all posts by robotronic