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 remove the redundancy messages in a file grajesh_955 Shell Programming and Scripting 1 06-03-2008 02:30 PM
Finding Hidden files and protecting the folder containing hidden files from deletion pochaw Shell Programming and Scripting 4 12-22-2007 01:33 AM
error messages in /var/adm/messages nitinp82 UNIX for Advanced & Expert Users 1 04-17-2007 11:17 AM
Hidden passwords neto Shell Programming and Scripting 2 09-21-2005 02:09 PM
hidden output slavam Shell Programming and Scripting 3 08-25-2004 07:07 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-17-2006
mpang_ mpang_ is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 89
remove hidden messages

When I print (cat) my log file, the following shows up

[00:15:09 17/11/2006] Executing sftp ...
sftp> lcd /home/abc
/home/abc
sftp> put test.xml
test.xml | 20MB | 620kB/s | TOC: 00:00:33 | 100%
sftp> quit
[00:15:46 17/11/2006] test.xml transferred

then I try to grep "100%" from this file where I got "grep: 0652-226 Maximum line length of 2048 exceeded."
So I did a "cat -v" on my log file which give me

[00:15:09 17/11/2006] Executing sftp ...
sftp> lcd /home/abc^M
/home/abc^M
sftp> put test.xml^M
^Mtest.xml | 576kB | 576kB/s | ETA: 00:00:34 | 2%^Mtest.xml | 960kB | 480kB/s | ETA: 00:00:40 | 4%^Mtest.xml | 1.4MB | 480kB/s | ETA: 00:00:39 | 7%^Mtest.xml | 1.9MB | 480kB/s | ETA: 00:00:38 | 9%^Mtest.xml | 2.4MB | 486kB/s | ETA: 00:00:37 | 11%^Mtest.xml | 2.8MB | 485kB/s | ETA: 00:00:36 | 14%^Mtest.xml | 3.3MB | 485kB/s | ETA: 00:00:35 | 16%^Mtest.xml | 3.8MB | 480kB/s | ETA: 00:00:34 | 18%^Mtest.xml | 4.2MB | 480kB/s | ETA: 00:00:33 | 21%^Mtest.xml | 4.7MB | 480kB/s | ETA: 00:00:32 | 23%^Mtest.xml | 5.1MB | 477kB/s | ETA: 00:00:31 | 25%^Mtest.xml | 5.6MB | 480kB/s | ETA: 00:00:30 | 28%^Mtest.xml | 6.1MB | 480kB/s | ETA: 00:00:29 | 30%^Mtest.xml | 6.5MB | 475kB/s | ETA: 00:00:29 | 32%^Mtest.xml | 6.9MB | 469kB/s | ETA: 00:00:28 | 34%^Mtest.xml | 7.3MB | 470kB/s | ETA: 00:00:27 | 36%^Mtest.xml | 7.8MB | 471kB/s | ETA: 00:00:26 | 39%^Mtest.xml | 8.3MB | 471kB/s | ETA: 00:00:25 | 41%^Mtest.xml | 8.9MB | 478kB/s | ETA: 00:00:23 | 44%^Mtest.xml | 9.4MB | 482kB/s | ETA: 00:00:22 | 47%^Mtest.xml | 10MB | 486kB/s | ETA: 00:00:21 | 49%^Mtest.xml | 11MB | 492kB/s | ETA: 00:00:19 | 52%^Mtest.xml | 11MB | 498kB/s | ETA: 00:00:18 | 56%^Mtest.xml | 12MB | 509kB/s | ETA: 00:00:16 | 59%^Mtest.xml | 13MB | 521kB/s | ETA: 00:00:14 | 63%^Mtest.xml | 14MB | 537kB/s | ETA: 00:00:12 | 68%^Mtest.xml | 14MB | 548kB/s | ETA: 00:00:10 | 72%^Mtest.xml | 15MB | 561kB/s | ETA: 00:00:08 | 76%^Mtest.xml | 16MB | 570kB/s | ETA: 00:00:06 | 80%^Mtest.xml | 17MB | 578kB/s | ETA: 00:00:05 | 84%^Mtest.xml | 18MB | 588kB/s | ETA: 00:00:03 | 89%^Mtest.xml | 19MB | 597kB/s | ETA: 00:00:02 | 93%^Mtest.xml | 19MB | 603kB/s | ETA: 00:00:00 | 97%^Mtest.xml | 20MB | 620kB/s | TOC: 00:00:33 | 100%^M
sftp> quit^M
[00:15:46 17/11/2006] test.xml transferred

what I want to do is to verify whether the file is transferred successfully, hence "grep 100%", but it seems that there are many hidden messages which cause error, can anyone tell me whether I can remove these hidden messages? or is there any other way to verify?
 

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:05 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