Hi, am a student and i have homework about bourne shell script and i am having difficulties because i've never written this kind of scripts.
1. The problem statement, all variables and given/known data:
So i have to write a script that check if files header.txt, content.txt and footer.txt exist.
I need to add a header and a footer to flat file - I just need to get values from the parameter like system date and report run date in the top line and for the footer I need to get the record count and prepend 00000 to it as shown below:
Header:
"A" "F" "2012-03-01" "20120229"
Footer:
"$M" "0000001252" "." "0000"
How can I achieve this in Unix?
Hi Every one,
what is the coomand to remove header or footer from a file.
Please help me by providing command/syntax to remove header/footer from unix.
Thanks in advance for all your support.
I store different variance of the below in an xml file. and apparently, xml has an issue loading up data like this because it contains html tags. i would like to preserve this data as it is, but unfortunately, xml says i cant.
so i have to strip out all the html tags.
the examples i found online tend to strip out the tags AND also the content, which i dont want. i need the content.
This is my file(Target.txt)
name|age|locaction
abc|23|del
xyz|24|mum
jkl|25|kol
The file should be like this
1|03252012
1|name|age|location
2|abc|23|del
2|xyz|24|mum
2|jkl|25|kol
2|kkk|26|hyd
3|4
Column 1 is row indicator
for row 1 and 2, column indicator is 1,for data rows its 2 and for footer its 3.
for footer the record count is is required.
Please help me how to achive it
I have previously built sites using PHP, where I automatically included header and footer html using the following lines in .htaccess on an Apache host:
php_value auto_prepend_file "/var/www/html/parts/header.htm"
php_value auto_append_file "/var/www/html/parts/footer.htm"
In these files I could put executable PHP code.
My current project is written in Perl, not in PHP.
Is there any way to a
I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags.
The logic of the script would be:
- if there is <li> or <ul> on the line, do nothing (=write same line to output)
- if there is:
font class="titleA"
substitute it with:
<h2>
- otherwise if there is html tag, r
I have an xml drawable shape with rounded corners which is background of listview(with margin 10dp).
Now I added header/footer to the listview.
But how can I make background not affect header/footer? I want it to start from the first(not header) element in array and finish at the last(not footer). The size of items in listview is known.
Thanks!
ive seen a post before and i tried to copy and implement it on my porject but i have trouble doing so this is the link that im talking about How do I create a header or footer button bar for my Android application it is on implementing header and footer my problem is that i cant put on my activity in the middle how can i do it in all my activity here is the code for my activity
main activity