Unix administration - What's wrong with this cut utility command?

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > March 2007 > What's wrong with this cut utility command?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author What's wrong with this cut utility command?
KAKA

2007-03-13, 7:17 pm

I am trying read filelist.log and strip out all file attributes and
print only the full path filname to output.log. The command (2 below)
I tried does not generate the appropriate output. (NOTE: I even tried
to issue cut without the -d switch, since tab is the default delimiter
for cut, it still doesn't work) What am I doing wrong here?

Here is what I issued on the command line:

cut -f11 -d ' ' filelist.log > output.log

OR since some paths come with directory / file names with space. I
would use this also:

cut -f 11-20 -d ' ' filelist.log > output.log


Here is my filelist.log:

23151931 43 -rwxrw-r-- 1 www www 43520 Oct 8 2004 /
export/home/qa/Utils/All 3rd Party Version/Docs/thirdparty.doc
33219855 3048 -rwxrw-r-- 1 www www 3109936 Jun 18 2004 /
export/home/qa/Utils/All 3rd Party Version/Popular Versions/VPN
_PPC/movianvpn-3.05-ppc2002.exe

Here is my output.log

23151931 43 -rwxrw-r-- 1 www www 43520 Oct 8 2004 /
export/home/qa/Utils/All 3rd Party Version/Docs/thirdparty.doc
33219855 3048 -rwxrw-r-- 1 www www 3109936 Jun 18 2004 /
export/home/qa/Utils/All 3rd Party Version/Popular Versions/VPN
_PPC/movianvpn-3.05-ppc2002.exe

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com