![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script 'find' command | bsavitch | UNIX for Dummies Questions & Answers | 1 | 06-22-2008 01:15 AM |
| find command from a shell script | kodermanna | UNIX for Advanced & Expert Users | 6 | 01-28-2008 06:37 AM |
| Wrapping ksh script | nir_s | Shell Programming and Scripting | 2 | 05-30-2006 03:37 AM |
| Find Command In Script | kdreaves | SUN Solaris | 3 | 01-21-2004 11:28 AM |
| Wrapping a bash script for CGI | andyj | Shell Programming and Scripting | 2 | 07-16-2003 01:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find command and wrapping in the script
Hello, I've been trying to use find command to find and print out some files. When I execute the command on the command line I get the output as expected howerver when I run it in the script it doesn't wrap.
For example, this is nicely wraped find /etc -perm -o=w -exec ll '{}' \; lrwxrwxrwt 1 root sys 20 Aug 26 15:13 /etc/vtdaemonlog -> /var/adm/vtdaemonlog lrwxrwxrwt 1 root sys 14 Aug 26 15:13 /etc/savecore -> /sbin/savecore lrwxrwxrwt 1 root sys 18 Aug 26 15:13 /etc/dumpdates -> /var/adm/dumpdates but when I do the same command in the ksh script, like like echo `find /etc -perm -o=w -exec ll '{}' \;` I get the following lrwxrwxrwt 1 root sys 20 Aug 26 15:13 /etc/vtdaemonlog -> /var/adm/vtdaemonlog lrwxrwxrwt 1 root sys 14 Aug 26 15:13 /etc/savecore -> /sbin/savecore lrwxrwxrwt 1 root sys 18 Aug 26 15:13 /etc/dumpdates -> /var/adm/dumpdates lrwxrwxrwt 1 root sys 22 Aug 26 15:13 /etc/dce.clean -> /opt/dce/bin/dce.clean srwxrwxrwx 1 root root 0 Aug 26 16:20 /etc/useracct/utmpd_read -rwxrwxrwx 1 root root 3640 Oct 23 09:12 /etc/utmpx everything is on one line ... there is no end line. How can I make it print each record on 1 line? Thank you, Kubko |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|