I have a file which is in below shape. Script should run and pick 1 and 2nd line and first line value store in A variable only numeric and 2nd line value should store in B variable only numeric. Then I have command which will check the value of these two tickets if both is having the same Checkpoint label then next command will make the relationship between both if not then skip and script will pick next two lines i.e 3rd and 4th.If the value of any variable is null then script will exit.
Please let me know how could I store the first line value in variable A and second line value in variable B then do it for all.
Please suggest
File name is Test(Format):example
Thanks-
Last edited by Scrutinizer; 02-09-2014 at 04:11 AM..
Reason: add some more lines. [mod] removed formatting, added code tags
Try:
But maybe you mean this:
The underscore is used to capture and discard the first field and a potential last field after the second field (if ever there should be one)
Last edited by Scrutinizer; 02-09-2014 at 04:30 AM..
Hi,
I am reading a directory that has a list of jar files. I am searching these files for specific keywords. What i would like to do is write the address of the jar file to a new file if the search result is returned as false. For example;
/home/user/JarDirectory/Examplefile.jar
... (2 Replies)
Dear all,
I'm new in Unix system, I need help about how to create execution file.
for example in my system i have file fg*
when i open fg file i get :
cmd='basename$0'
$cmd "$@"
how to create file like that (execution file) in KSH shell
thank you for your help
heru (4 Replies)