Search Results

Search: Posts Made By: Manoj Rajput
2,753
Posted By Manoj Rajput
Sorry for not understanding Don's suggestion...
Sorry for not understanding Don's suggestion properly.

Now my script is working perfectly. :)

Thanks to you and Don for help...
2,753
Posted By Manoj Rajput
Thanks but that is not working... ...
Thanks but that is not working...

[root@testserver httpd]# ls -md */ */*/
ls: cannot access */*/: No such file or directory
buckets/, build/, include/, os/, server/, support/
...
2,753
Posted By Manoj Rajput
Hi Sea, Below is the code i am using. On...
Hi Sea,

Below is the code i am using. On console output is fine but when i am redirecting output to file then single line is breaking in multiple lines. Can you please suggest..
...
2,753
Posted By Manoj Rajput
Its is just printing main directories not the...
Its is just printing main directories not the sub-directories/files..
2,753
Posted By Manoj Rajput
Wrong output when writing to file
Hello,

I am having problem while redirecting output to a file where as on console output is proper.

for dir in */; do printf "%s, " "$dir"; ls -m "$dir"; echo; done > output.txt

Output of...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy