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
script not working...select utility mobydick Shell Programming and Scripting 6 05-08-2008 07:33 AM
Writing a Utility Script raghav1982 Shell Programming and Scripting 10 04-21-2008 12:23 PM
Help on how to call a utility from script innocent Shell Programming and Scripting 3 01-20-2008 06:40 AM
Need help on SCRIPT(1M) utility amit4g UNIX for Dummies Questions & Answers 1 11-23-2006 03:49 AM
cdrdao utility script snwright Shell Programming and Scripting 2 04-26-2004 12:13 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 11-08-2005
maheshsri maheshsri is offline
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
  #2 (permalink)  
Old 11-08-2005
rhacodactylus rhacodactylus is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 9
Hi,

did You try

cat file1 | sort ... >file2

Best regards
Dieter
  #3 (permalink)  
Old 11-08-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
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 05:58 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