Sponsored Content
Full Discussion: ls -la
Top Forums UNIX for Dummies Questions & Answers ls -la Post 302096859 by jam_prasanna on Monday 20th of November 2006 04:37:19 AM
Old 11-20-2006
Hi Sasi,

I dont think so it will work as i required. it will just cat all the lines in to a single line with ; sepated format.
Let me brief my requirement,
if i run ls -la cmd in my current directory o/p look like
drwxrwxr-x 8 ic develop 1024 Nov 15 17:40 ./
drwxrwxr-x 11 ic develop 1024 Nov 15 16:05 ../
-rwxr-xr-x 1 ic develop 236 Nov 15 16:05 avg.sh*
-rw-rw-r-- 1 ic develop 1416 Nov 15 16:05 bak
-rw-rw-r-- 1 ic develop 2702 Nov 15 16:05 bak2
-rw-rw-r-- 1 ic develop 0 Nov 15 16:05 batch
-rw-rw-r-- 1 ic develop 37 Nov 15 16:05 bigfile
-rwxr-xr-x 1 ic develop 313 Nov 15 16:05 bintooct*
-rw-rw-r-- 1 ic develop 16184 Nov 15 16:05 cat_def
-rwxr-xr-x 1 ic develop 426 Nov 15 16:05 chessboard*
-rwxr-xr-x 1 ic develop 211 Nov 15 16:05 chk*
-rwxr-xr-x 1 ic develop 315 Nov 15 16:05 decimaltobinary*
drwxrwxr-x 3 ic develop 512 Nov 15 17:39 excer/
-rwxr-xr-x 1 ic develop 196 Nov 15 16:05 fact.sh*

i wanted to convert this mutiple, inconsistace spaces with "|" o/p should like

-rwxr-xr-x|1|ic|develop|196|Nov|15|16:05|fact.sh*

can it be done using single command in shell?

thanks,
jam
 
masqmail.aliases(5)						   File Formats 					       masqmail.aliases(5)

NAME
masqmail.aliases - masqmail alias file format DESCRIPTION
This man page describes the format of the masqmail alias file. Its usual location is /etc/aliases. FILE FORMAT
The alias file consists of lines of the form: local_part: item1, item2, ... Items can be surrounded by double quotes `"'. If within the quotes other quotes are needed for an address they can be escaped with a leading backslash `'. A leading backslash `' indicates that this address shall not be further expanded. A leading pipe symbol `|' indicates that the item shall be treated as a pipe command. The content of the message will then be sent to the standard input of a command. The command will run under the user id and group id masqmail is running as. If quotes are needed, the pipe symbol must appear within the quotes. Loops will be detected, the offending address will be ignored. Aliases will be expanded at delivery time. This means that if there is a message still in the queue and you change any alias which matches one of the recipient addresses, the change will have effect next time a delivery is attemped. There is no need to restart masqmail or run any command when the alias file has been changed. AUTHOR
Masqmail was written by Oliver Kurth. It is now maintained by Markus Schnalke <meillo@marmaro.de>. You will find the newest version of masqmail at http://marmaro.de/prog/masqmail/. There is also a mailing list, you will find information about it at masqmail's main site. BUGS
Please report bugs to the mailing list. SEE ALSO
masqmail.conf(5), masqmail(8), masqmail-0.2.30 2011-07-27 masqmail.aliases(5)
All times are GMT -4. The time now is 06:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy