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...
User Profile
Collapse
-
UNIX - Reading the input to a shell Scrip from a File
-
------------------------------------------------------
Thanks a lot... -
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
... -
-
------------------------------------------
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...Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: