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!

Recent content by ttlhr

  1. ttlhr

    How to read a variable and store it

    Thanks, i figured out reading the documents. something like, awk '/the value/{print $2}
  2. ttlhr

    How to read a variable and store it

    Thanks, i figured out reading the documents. something like, awk '/the value/{print $2}
  3. ttlhr

    How to read a variable and store it

    Hello I am looking to see how to acheive this, but cannot figure out a way: 1. open a file from a remote location 2. look for a specific string (ex "byte size is 6678KB", but the "KB" value changes everyday) 3. store this value for future comparision Can someone guide me please?
  4. ttlhr

    How to count lines in a file

    thank you so much guys.
  5. ttlhr

    How to count lines in a file

    Do you think this is correct? open(FILE, "< $file") or die "can't open file: $!"; $count++ while <FILE>; # $count contains the number of lines
  6. ttlhr

    How to count lines in a file

    hi - does this example you gave, does it go like this: perl -ne 'END{print$.}' /input/"file location" ? also, once i get the count, how do i store it somewhere? because further down the script i have to compare it. thanks again!
  7. ttlhr

    How to count lines in a file

    Hello, i am new to perl. I am trying to understand how to count lines in a file, the most simplest way? Any pointers can help me understand the concept. Please know that i am very new to this so any advanced information would pass over my head. Thank you TT

Part and Inventory Search

Back
Top