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 derfloh 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: *

  • Users: sfu
  • Content: Threads
  • Order by date
  1. sfu

    read files with blank lines from stdin

    Hi all, I wanted to know how you can avoid problems when reading from stdin, when the file name is like: ./mydir/my resume This is interpedet by the shell as two files and my shell script outputs an error message. I tried several differnt ways, such as: "'$myVariable'&quot...
  2. sfu

    trap function

    I have defined the following trap function. gotill() { job=$(jobs) bg=$(echo "$job" | grep "status &$") if [ ! -z "$bg" ]; then trap '' INT else echo "Warning, the next interrupt key (^C) will terminate the script!&quot...
  3. sfu

    1k disk blocks

    I need to find the size of a file and or a directory in 1k disk blocks. A normal ls -l | cut -d' ' -f5 respectively ls -ld give me the size in bytes. Is there another way to find it in 1k disk blocks or do I have to multiply it with some numbers ? Thanks for your help.
  4. sfu

    getopts function

    I am running the GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. I tried to use the getopts function in my script. However, I always get the following error message: ./status: line 109: syntax error near unexpected token `;;'...
  5. sfu

    windows/dos wont load

    windows 98 wont load it just freezes midway, same thing happens when i try booting in safe mode dos seemed to be working so but now it locks up b4 i get to the command prompt any ideas on what i can do? i cant reformat due to important files on the hd, i just need to move the files from...

Part and Inventory Search

Back
Top