Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. midge25

    Menu Problem

    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...
  2. midge25

    Reading a File Backwards

    PHV, Works wonders.. Thank you very much. midge25
  3. midge25

    Reading a File Backwards

    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
  4. midge25

    Creating a table from an xml file

    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??
  5. midge25

    Creating a table from an xml file

    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>...
  6. midge25

    Sorting Big Files

    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...
  7. midge25

    Finding files older than 2 hours

    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...
  8. midge25

    swap lines in a file

    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 &quot;/$header/p&quot; ${file_name} > temp1 | sed &quot;/$header/d&quot; ${file_name} >> temp1 Thanks midge25
  9. midge25

    swap lines in a file

    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

Part and Inventory Search

Back
Top