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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script not working...select utility mobydick Shell Programming and Scripting 6 05-08-2008 03:33 AM
Writing a Utility Script raghav1982 Shell Programming and Scripting 10 04-21-2008 08:23 AM
Help on how to call a utility from script innocent Shell Programming and Scripting 3 01-20-2008 03:40 AM
Need help on SCRIPT(1M) utility amit4g UNIX for Dummies Questions & Answers 1 11-23-2006 12:49 AM
cdrdao utility script snwright Shell Programming and Scripting 2 04-25-2004 08:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-08-2005
Registered User
 

Join Date: Oct 2005
Posts: 31
sort utility in script ?

Hi friends,

I want to use sort command in script. I used the following syntax in my scipt,

sort -t '|' +3 tempcdrext4.cdr > temp.mocdr

It give me a error " Input file specified two times."

but this command work fine in the prompt without any problem.

Can sombody please tell me who what is the problem.

I am using bash shell.

Regares,
Mahesh
Reply With Quote
Forum Sponsor
  #2  
Old 11-08-2005
Registered User
 

Join Date: Aug 2005
Posts: 9
Hi,

did You try

cat file1 | sort ... >file2

Best regards
Dieter
Reply With Quote
  #3  
Old 11-08-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
Quote:
Originally Posted by rhacodactylus
Hi,

did You try

cat file1 | sort ... >file2

Best regards
Dieter
This is UUOC. What system are you running this on? Post the uname -a output and the script code. You would get much better help then.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0