|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
xargs
ls words | xargs echo | tr ' ' ':'
I was told this code is for linux machines. i have a sun solaris web server, should this code for my server too? i did not build my server or know much about linux/solaris coding. i pretend to know how to code in php, which is where this question started in. thanks for any help |
|
#2
|
|||
|
|||
|
if your question is if this code works, yes it will.
one comment on your code: "|xargs echo" is imho totally useless here. ls words | tr ' ' ':' is the same result.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
you are saying it will work for a sun solaris server?
i changed the code to how you said it should work and it didn't work for me. still not generating the actual list of the files in directory words. Last edited by mbl : November 3rd, 2002 at 03:41 PM. |
|
#4
|
|||
|
|||
|
what is the output of "ls words" only?
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > xargs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|