Results 1 to 6 of 6

Thread: Formatting problem

  1. #1
    Join Date
    Jun 2005
    Beans
    64

    Formatting problem

    I'm trying to copy and paste sscript written by a colleague on a Windows box and run it on a Solaris box. I'm copying from a GEdit/Kedit opened .txt file and no matter what I do, it runs incorrectly. I tried running dos2unix on the file. Any ideas? I'm running Feisty but this problem existed on Dapper as well.

  2. #2
    Join Date
    Nov 2005
    Beans
    593
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: Formatting problem

    On Kate, you can go to Tools -> End of line and select Windows/DOS. You can also run a script to substitute "\n" for "\r\n" in this file.

  3. #3
    Join Date
    Jun 2005
    Beans
    64

    Re: Formatting problem

    Thanks for quick reply! Unfortunately that didn't work. Getting frustrated here.

  4. #4
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: Formatting problem

    "It runs incorrectly" is a bit vague. Give some more details.

  5. #5
    Join Date
    Jun 2005
    Beans
    64

    Re: Formatting problem

    It gives the proper results as in a grep for "FW" returns only "FW" results when ran from a Windows box or another Unix box aside from my Ubuntu box. When run form my Ubuntu box it returns "FM and "FD."

    How it should look:
    [root@phantom: /tmp]# echo -n `mminfo -m -t '3/23/07' | grep FW | awk '{print $1}'` > wt
    [root@phantom: /tmp]# for r in `cat wt`; do echo $r; done | xargs -i@ mminfo -a @ | egrep "3/23|3/24|3/25|3/26" | awk '{print $1}' | sort | uniq
    mminfo: no matches found for the query
    mminfo: no matches found for the query
    mminfo: no matches found for the query
    mminfo: no matches found for the query
    FW4092
    FW4095
    FW4096
    FW4098
    FW4099
    FW4100
    FW4102
    FW4104
    FW4106
    FW4107
    FW4108
    FW4650

    ------------------------------------------------------------------------------------------------------------------------------------

    What it looks like from my box.

    [root@phantom: /tmp]# echo -n `mminfo -m -t '3/24/07' | grep FW | awk '{print $1}'` > wt
    [root@phantom: /tmp]# mminfo -a `cat wt` | egrep "3/24|3/25|3/26|3/27" | awk '{print $1}' | sort | uniq

    FD4008
    FD4009
    FD4010
    FM4123
    FM4124
    FM4125
    FW4099
    FW4100
    FW4102
    FW4104
    FW4106
    FW4107
    FW4108
    FW4109

  6. #6
    Join Date
    Feb 2007
    Beans
    2,729

    Re: Formatting problem

    Oh my, that's convoluted.

    You're going to have to provide us with a few lines of output from the mminfo command.

    I have no idea what its output is. Once you show that, we'll help with the rest.

    MrC

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •