![]() |
|
|
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 |
| To compare selective file in different folders | gmahesh2k | UNIX for Dummies Questions & Answers | 0 | 05-15-2008 03:03 AM |
| Compare two arrays in sh or compare two fields | rijeshpp | Shell Programming and Scripting | 0 | 10-31-2007 02:47 AM |
| Remote compare of folders | sunilav | Shell Programming and Scripting | 1 | 04-04-2007 06:04 AM |
| Copying Folders without some folders... ;-) | chimpu | UNIX for Dummies Questions & Answers | 5 | 04-26-2004 01:25 PM |
| Backing up Folders without some folders...;) | chimpu | Shell Programming and Scripting | 1 | 04-26-2004 11:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
rikxik, i have not the command dircmp on mac os x... i have tried this Code:
#!/bin/bash var="$(ls -1 /Users/$USER/Desktop/source/ | sed 's/ /_/g')" var1="$(ls -1 /Users/$USER/Desktop/destination/ | sed 's/ /_/g')" var3="$var $var1" for file in $var3 do if [ "$var" != "$var1" ] then echo $file fi done but i only want the file wich is not common on the 2 folders... |
|
||||
|
i imagine this code but i work with extern file and not variables....the code is good Code:
(ls -1 /Users/$USER/Desktop/source/ | sed 's/ /_/g') > essai.txt #echo $var (ls -1 /Users/$USER/Desktop/destination/ | sed 's/ /_/g') >> essai.txt cat essai.txt | sort | uniq -u |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|