User Profile

Collapse

Profile Sidebar

Collapse
SANDY1722
SANDY1722
Last Activity: Sep 26 '07, 03:52 PM
Joined: Sep 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • UNIX - Reading the input to a shell Scrip from a File

    Hi,

    I have a shell script, test.ksh which should read the input from another file, say 1.txt

    test.ksh:

    #!/usr/bin/ksh

    datasource=$1

    echo "Data is: $datasource


    1.txt:

    12345

    When I run the command:

    $test.ksh < 1.txt

    It does not read the varibale properly from the file.

    The...
    See more | Go to post

  • SANDY1722
    replied to Perl - how to skip a line
    in Perl
    ------------------------------------------------------

    Thanks a lot...
    See more | Go to post

    Leave a comment:


  • SANDY1722
    started a topic Perl - how to skip a line
    in Perl

    Perl - how to skip a line

    Hi,

    I am new to perl. I want to open a flle with some data and skip the fisrt line, and write to another file.

    Source File: source.txt

    Data: Bank Acct - Cheking
    Balance: $230
    Customer: Tom
    -------
    ------

    Target File should only contain all the lines, except the first one

    target: target.txt

    ...
    See more | Go to post

  • SANDY1722
    replied to Perl Help
    in Perl
    -----------------------------

    Thanks jeff...
    See more | Go to post

    Leave a comment:


  • SANDY1722
    replied to Perl Help
    in Perl
    ------------------------------------------

    Jeff,

    the file is going to be generated on Ad-hoc basis daily.

    todays file:

    s_map_test
    $$paramname_200 70919112345

    out file: 20070919112345

    Tommorows file:

    s_map_test
    $$paramname_200 70920112346

    out file:

    20070920112346

    Note: there is only one...
    See more | Go to post

    Leave a comment:


  • SANDY1722
    started a topic Perl Help
    in Perl

    Perl Help

    I have a unix file:

    file contents:

    foo.text:

    s_map_test
    $$param_name_20 070919112345

    I want to extract only the 2nd part of the line, and write to new file - foo.out

    The New file should have:

    foo.out:
    20070919112345

    Thanks for help
    See more | Go to post
No activity results to display
Show More
Working...