Hi,
I am creating a menu system (with a number of sub menus) and come across a sticky problem.....
I think its best to explain with an example
e.g.
The following directory structure (the number of directories can vary) exists:
apple
banana
cat
dog
elephant
..
I need to create an option...
Hi,
I wish to read a file backwards.
e.g.
File contains
Apple
Banana
Carrot
Daisy
Elephant
.....
This should read as follows:
Elephant
Daisy
Carrot
Banana
Apple
I am sure this possible but just cannot remember how.
Thanks in advance,
Midge25
That works great. There is a light problem, the tags are not always the same. These can vary from:
<es>
<nl>
<fe>
<cr>
e.t.c
Can I not change the script above so that it will search for all tags and pass these into an array and then print out as I wish??
Hi,
I have a large xml file which looks as follows:
<title id="T6352">
<en>Power Distribution</en>
<es>Distribución de alimentación</es>
<el>??a??µ? ?s????</el>
<cs>Usporádání elektrického napájení</cs>
<de>Stromverteilung</de>
<fi>Virranjako</fi>
<fr>Distribution d’alimentation</fr>...
Hi,
I am trying to run the following on a set of files which are really large:
cat ./working_dir/CP900*.new | sort -k 1.1,1.43 -o ./merged_dir/CP900.merged
When I do this, it blows the space in tmp and I get the following error:
/usr: write failed, file system is full
sort: A write error...
Hi,
I am writing a shell script(ksh) to find flat files older than 2 hours.
I have touched a temp file and modified its time and then used a find command but it gets tricky when you get to the end of the month and the start of the year.
Is there any alternatives I can use???
I am sure I...
Dickie Bird
The contents of teh 2nd last line are always different.
Tried the following and it works but is quite slow:
export header=`tail -2 ${file_name} | head -1`
sed -n "/$header/p" ${file_name} > temp1 | sed "/$header/d" ${file_name} >> temp1
Thanks
midge25
Hi,
I'm hoping someone can help.
I need to cut the 2nd to last line from a file and paste it to the top of the file.
For example:
Line1
Line2
Line3
Line4
Needs to change to
Line3
Line1
Line2
Line4
Thanks in advance,
midge25
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.