The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
how to print single quote in awk gauravgoel UNIX for Dummies Questions & Answers 6 08-20-2008 05:48 PM
single quote dreams5617 Shell Programming and Scripting 2 12-01-2007 03:37 AM
Don't Quote Me On This... Janus Shell Programming and Scripting 3 11-01-2006 11:59 PM
AWK handling of single quote braindrain Shell Programming and Scripting 3 04-27-2006 05:57 PM
Replacing a single quote rjsha1 Shell Programming and Scripting 3 12-23-2005 10:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2008
AbhishekG AbhishekG is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
xargs: missing quote?

i am facing this problem


>find . -mtime +5 | xargs ls -lrt
xargs: missing quote?: ./off.lst

even if i try ivar i get this error
>find $PWD -mtime +5 | xargs -ivar echo "var"
/home/fnsonlid/.cshrc
/home/fnsonlid/.exrc
/home/fnsonlid/.login
/home/fnsonlid/CA550CKR
/home/fnsonlid/asdf.lst
/home/fnsonlid/gan
/home/fnsonlid/gan/asdf
/home/fnsonlid/gan/qwer
/home/fnsonlid/gan/zxcv
/home/fnsonlid/.ssh
/home/fnsonlid/ab
/home/fnsonlid/mbox
/home/fnsonlid/brhm.ian
/home/fnsonlid/invm.ian
/home/fnsonlid/brhm2.ian
/home/fnsonlid/brhm3.ian
/home/fnsonlid/recon
/home/fnsonlid/insp.ian
/home/fnsonlid/inv.lst
xargs: missing quote?: /home/fnsonlid/off.lst

please help
  #2 (permalink)  
Old 06-04-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,342
It seems that you have some "special characters" in your file(s), why don't you try it this way without xargs:

Code:
find . -mtime +5 -exec ls -lrt {} \;

Regards
  #3 (permalink)  
Old 06-04-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,800
I think there are hidden non-printing characters in the file name. try this:

Code:
ls /home/fnsonlid/ | od -c

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0