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 TouchToneTommy 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: shyg
  • Content: Threads
  • Order by date
  1. shyg

    [?] remove

    Problem: -------- I am trying to remove a userid and name from a file once the user has specified the userid or name to remove. Sample Code: ------------ #!/bin/sh echo Enter a userid or name to search for and remove: read wrd grep -w $wrd ~/test | cut $wrd Notes: ------ Im using grep -w cause...
  2. shyg

    prompt user + add to file

    I am trying to prompt the user to enter info then once they have entered the info for the fields then >> the new info to an exisiting file. Sample Code: ------------ echo Enter a userid:$1 echo Enter the first name:$2 echo Enter the last name:$3 $1+$2+$3 >> users.ref I want to keep the...
  3. shyg

    [?] OpenBSD

    Has anyone here installed OpenBSD + Windows XP on the same disk? If so could u give me some pointers on how to install, things to look out for, what not to do, stuff like that plz. Also is there any bugs or known exploits which havent been resolved as of late and is OpenBSD 3.4 a better choice...
  4. shyg

    [help] Solving Errors & goto

    I am working on a program which test to see if a number is perfect but before I can ensure that I am testing for perfect numbers properly. I have to compile the code to see if the test results are correct. #include <stdio.h> int readud(int pVal, int perfect() ) // Read User Data { printf...
  5. shyg

    filter lines in a file

    How can I filter out certian lines from a file? I cant use tail or head since I am not after the first or last portions of the file but specific lines say 21-30 and 33,36,40 and so on how would I filter by the line and by a group like 21-30.
  6. shyg

    [req] Link

    Does anyone have a link for an interactive vi tut? My skills with vi are very poor and I would like to improve them.
  7. shyg

    [?] sort

    How can I sort a file by a specific word? sort -dg "word2sort for" /etc/file >> test
  8. shyg

    [?] GnuPG

    I am tring to install " gnupg-w32cli-1.2.4 " for windows. I have followed the directioNs in the readme but am still experiencing some problems. My regfile reads as follows: ----------------------------------------------------------- REG-FILE CODE...
  9. shyg

    [?] concentrate files

    I am trying to concentrate three files and create a newfile containing the output SAMPLE CODE: test >> test1 >> test2 > newfile This results with only "test" being added to file "newfile" SAMPLE CODE: test > test1 > test2 > newfile Same result ALSO...ne know how to view file permissions?
  10. shyg

    [?] file permissions

    how do I display the file permissions using the terminal?
  11. shyg

    [?] Basic

    1. How do I create an empty line and pass it on to a file so there is a space as if I had hit return? echo "text" >> test echo "" >> test #line which I want to be a space echo "text" >> test 2. How can I create an empty or zero byte file? I have been trying to use cat for this but it stops...
  12. shyg

    Adding txt to a file

    How do I append a line of text to a file using "cat" or some other command? mkdir ~/tmp cat > ~/tmp/test cat "This text to be written to file 'test'." >> test cat "second line of text to be added" >> test cat "emptyline" >> test date >> test ls -al >> test

Part and Inventory Search

Back
Top