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

    how to debug these warnings

    Hi, I've been getting this error intermitently. It goes away with a reload but every couple of days I see this warning. Since it is not reproducible easily I haven't been able to track it down. Has anyone see such type of warnings? Any ideas how to go about debugging this? Warning...
  2. praywin

    check if input is a valid float number

    Hi, I want to check if the input is a valid float number. i.e. it should filter out 12..0 , abc , 12abc etc. I was trying to read in the input as a string but it didn't work that great. Please let me know if you know of some other way. Cheers, Pravin.
  3. praywin

    Hi All, I am having problem with

    Hi All, I am having problem with this piece of C code. I want to input two values. One is a char and another is a char * and I want to keep doing this in a while loop. However after the first iteration the program doesn't stop at the first scanf. Please help me out here. Thanks Pravin...
  4. praywin

    deleting a column in vi

    Hi, I want to delete a column from a file while inside a vi session. I know the awk solution I want to know if it is possible using vi. Cheers, Pravin.
  5. praywin

    merge multiple lines

    Hi, I have a file like abc bcdcde def efg fgh I want awk to read it and print abc bcd cde def efg fgh i.e. substitute \ with " " Can anyone help me here? I tried awk '{if ($NF=="\\") {$NF= " ";printf("%s",$0);} else {print}}' file but it is...
  6. praywin

    sort in awk

    Hi, Is there any way I can use sort inside awk. i.e. awk ' { if (NF==2) {ar[$2]+=$1}; print...
  7. praywin

    email virus in web-based account

    Hi , I have a question regarding email viruses. Such emails recieved in Outlook Express or an email client on your local computer can be dangerous. But if I recieve such an email in my web-based email account will it still be dangerous. I would be grateful if you could point me to some page...
  8. praywin

    remove last column

    Hi, I want a awk script which will not print the last column of the line. Say my input is /usr/local/bin/gdb /u/src/bin/ddd I want the output to be /usr/local/bin /u/src/bin awk -F/ '{for(i=1;i<NF;i++) {print &quot;/&quot;$i}}' gives me /usr /local /bin /u /src /bin I want them printed...

Part and Inventory Search

Back
Top