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 SkipVought 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
  • Order by date
  1. shyg

    [?] remove

    Ok when I run this and search by key word "Brittney", "Morris", or "britm" nothing is removed Sample Code: ------------ #!/bin/sh echo Enter a userid or name to search for and remove: read wrd sed -e "`grep -n -w $wrd ~/test | awk -F':' '{printf \"%dd;\",$1}'`" ~/test
  2. shyg

    [?] remove

    Enter a userid or name to search for and remove: britm 1:britm Brittney Morris
  3. shyg

    [?] remove

    @PHV - thx but your solution didnt work for me
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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.
  9. shyg

    SDA files, opening from command line with password

    Quick question why is it none of the members here support the GnuPG version of PG? @jvvolkman - the GnuPG version is a command line version and is free not to meantion it supports SDA after a bit of work on your part.
  10. 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.
  11. shyg

    [?] sort

    This code returns an error:sort -dg "word2sort for" /etc/file >> test But if I were to sort the contents of "file" as so sort -dg /etc/file >> test[\code] There would be no problem. My goal is to sort "file" only returning the lines containing the text which I am after. So as an example I...
  12. shyg

    [?] sort

    How can I sort a file by a specific word? sort -dg "word2sort for" /etc/file >> test
  13. 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...
  14. shyg

    [?] concentrate files

    Figured out what I was doing wrong when combineding files. Alhough I could still use some help finding hte command which lists file permissions.
  15. 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?
  16. shyg

    [?] file permissions

    thats incorrect the command U provided lists directorys and hidden files I am after file permissions
  17. shyg

    [?] file permissions

    how do I display the file permissions using the terminal?
  18. 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...
  19. shyg

    Adding txt to a file

    thx PHV
  20. 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