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
Tar to remote machine hshapiro UNIX for Dummies Questions & Answers 2 01-23-2009 07:04 PM
executng program on remote machine using ssh sewood Shell Programming and Scripting 1 02-17-2008 07:03 PM
Execute command from terminal on remote machine Ranu Shell Programming and Scripting 0 10-09-2007 05:13 AM
Help regarding theMailing of output from a remote machine OSD UNIX for Advanced & Expert Users 1 08-21-2007 02:00 PM
Searching for files in Remote Machine matrixmadhan UNIX for Dummies Questions & Answers 0 06-21-2005 06:02 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
eamani_sun eamani_sun is offline
Registered User
  
 

Join Date: May 2008
Posts: 40
Cut command on a remote machine using rsh

Hi all,

I have a file on a remote machine and I want to do a cut operation on that file.

So, I have been doing

rsh <remote> " cut -d " " -f 2 <filename> "
cut: invalid delimiter

But, when I get the file to the local machine and run the same command, I get the o/p required.

can someone help me with this?

Thanks,
Sunny

Last edited by eamani_sun; 06-04-2008 at 04:57 PM..
  #2 (permalink)  
Old 06-04-2008
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
try...
Code:
rsh <remote> ' cut -d " " -f 2 <filename> '

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 08:49 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