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 find a file named vijay in a directory using find command amirthraj_12 UNIX for Dummies Questions & Answers 6 10-25-2008 01:37 PM
Intel and Wind River driving Linux infotainment systems to cars iBot UNIX and Linux RSS News 0 05-20-2008 04:20 PM
problem with find braindrain Shell Programming and Scripting 2 03-29-2006 01:33 PM
how to find a file in UNIX without find command? bluo Shell Programming and Scripting 3 09-25-2003 12:47 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 09-18-2007
lpelo2000 lpelo2000 is offline
Registered User
  
 

Join Date: Aug 2007
Location: Sesto San Giovanni
Posts: 3
Problem wind find file

Hello,
I have a problem. I use the following istruction:
ls -lrt Invoice_Line_Items* | awk '{print $9}' > ${lflfile_list}

for insert the name by all file the start with "Invoice_Line_Items", but when the directory don't have this file I have the following messagge error:
"0653-341 The file Invoice_Line_Items* does not exist" and the script don't finish with error. It's possible don't get out messagge?

Thanks for the information,
Luca

PS: I use Korn shell in and the machine is IBM AIX 5L.
  #2 (permalink)  
Old 09-18-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by lpelo2000 View Post
ls -lrt Invoice_Line_Items* | awk '{print $9}' > ${lflfile_list}


Code:
ls -lrt Invoice_Line_Items* 2> /dev/null | awk '{print $9}' > ${lflfile_list}

  #3 (permalink)  
Old 09-18-2007
lpelo2000 lpelo2000 is offline
Registered User
  
 

Join Date: Aug 2007
Location: Sesto San Giovanni
Posts: 3
Quote:
Originally Posted by vino View Post
Code:
ls -lrt Invoice_Line_Items* 2> /dev/null | awk '{print $9}' > ${lflfile_list}
Thanks!
Luca
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 03:12 PM.


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