Search Results

Search: Posts Made By: limshady411
21,083
Posted By limshady411
I don't have python, but thanks!
I don't have python, but thanks!
21,083
Posted By limshady411
Thanks Tyler, this does the trick!
Thanks Tyler, this does the trick!
21,083
Posted By limshady411
Thanks Jim. This looks like it would do the...
Thanks Jim. This looks like it would do the trick. I can't get it working with my code though. I started using this:

while IFS=',' read first rest
do
printf "%07d,%s\n" $first "$rest" >>...
21,083
Posted By limshady411
Padding with zeros
Hi all,

Referencing the awk statement here awk -F: '{ printf "%06d: %s\n", $1,$2 }' input.txt, I want to apply this concept to the 5th field, where I am padding 6 leading zeroes, and the rest of...
2,614
Posted By limshady411
hi joey, thanks! i ended up using sed which...
hi joey,
thanks! i ended up using sed which accomplishes the same thing. For some reason, i was thinking it had to be a one liner
# print the last 2 lines of a file (emulates "tail -2")
sed...
2,614
Posted By limshady411
How do I compare the last two lines of a file?
Hi, I want to compare the last two lines of a files, specifically characters 32 - 50 in both lines and generate an exit code if the range of characters do not match. Please advise. Thanks in advance!
10,540
Posted By limshady411
it may not like the spaces for the directory...
it may not like the spaces for the directory name(s)...perhaps use asterisk (*) in place of the spaces?
56,245
Posted By limshady411
Thanks. Will do.
Thanks. Will do.
56,245
Posted By limshady411
How would I read in values from a text file and...
How would I read in values from a text file and do the exact thing?

Text file contains 2 values: test.txt

1.51 -2.76

I want to read these values from test.txt and assign them to numone and...
7,803
Posted By limshady411
Help: How do I ADD non-integer (decimal) values?
I am trying to create a script that will read from a file two non-integer values (decimals) and add those values together. For example, I want to add 1.51 and -2.37 together and get the sum. Any...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 07:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy