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 strongm 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: *

  1. scottpeter

    How to find the file size in GB

    Hoinz, even 'ls -ls --block-size=1GB' did not work on my system. I did it using the following 'du -b *' which gives the disk usage in bytes and converted it into GB. PHV, I tried your program after I was done. It works perfectly......... Thank you everybody for the help. Cheers, Scott
  2. scottpeter

    How to find the file size in GB

    I am using GNU/Linux. Tony the command does not do anything. It just displays the listing with the number of bytes. How can I get the values in GB's? Sorry If I am being dumb, I am not too familiar with Linux/Unix. Thanks, Scott
  3. scottpeter

    How to find the file size in GB

    I have a directory. I need to find out the size of the files in the directory in GB's. How can I do this? Thanks, Scott
  4. scottpeter

    aligning the records in a file

    PHV, The new solution worked perfectly. Thank you very much. Sorry for all the confusion. Scott
  5. scottpeter

    aligning the records in a file

    The real file I have is 316 bytes long and in the above format. The position I need to check for the '+' sign is the 140th position for every record. When I posted the question originally I wanted to make it simple. Hence I created some records of my own that were 14 bytes long and said that I...
  6. scottpeter

    aligning the records in a file

    The first solution does not give any error message. It is just shifting the records in a way I cannot determine whether the output file is right or no. Input File 1230003459G314010610299 +00000000 C69NU00000000000 00000+0000000000000+0000000000000+00000000...
  7. scottpeter

    aligning the records in a file

    I am still struggling to run this successfully. Otherwise how can I do the following: If I find '+' in the 6th position, then replace the '+' with a '0+'(The 0+ should be inserted at that position). Thanks, Scott
  8. scottpeter

    aligning the records in a file

    I have a file in the following format: AAA000+0032432 BBB00+0023324 CCC000+0023442 ddd000+0032424 FFF00+0023444 AAA000+0032432 CCC000+0023442 ddd000+0032424 The file should have '+' sign as the 7th character of every line. But you can see the character has shifted left by one place in some...
  9. scottpeter

    Text File manipulation

    I have a file in the following format. col1_row1, col2_row_1, col3_row_1, col4_row_1, col5_row_1, col6_row_1, col7_row_1, col8_row_1 col1_row2, col2_row_2, col3_row_2, col4_row_2, col5_row_2, col6_row_2, col7_row_2, col8_row_2 col1_row3, col2_row_3, col3_row_3, col4_row_3, col5_row_3...
  10. scottpeter

    Password Protect a folder on Unix

    I am not sure whether the sysadm will go out of his way to do something like this. I will give a try. By the way I am using HPUX. Or is it possible that I somehow encrypt the files or give a password to the files. Thanks, Scott
  11. scottpeter

    Password Protect a folder on Unix

    They wont create a new account. Can this be done in the same account. thanks, scott
  12. scottpeter

    Password Protect a folder on Unix

    PHV, Thanks for your answer. Your solutions removes the privileges from 'g' and 'o'. But what I meant to say was that e.g., I am using a Id 'u111111'. 'u111111' is owned by my team. Hence others in the TEAM have access to this Id and Password. When they log in using this Id they can see the...
  13. scottpeter

    Password Protect a folder on Unix

    Is there any way to protect a folder with Password on UNIX. I am using a group ID and do not want that others in the group should be able to see the contents of this folder. Thanks, Scott
  14. scottpeter

    How to create different files from a single file

    Thanks PHV and Annihilannic. It is working perfect. I had one more question. Can I print the name of each of these files as the first line(as a header commented out) of that respective file. Thanks, Pete
  15. scottpeter

    How to create different files from a single file

    I have a text file in the following format. It contains number of file names and the contents for those files. The file name is commented out with '//'. //FILE1.txt CONTENTS OF FILE1 //FILE2.txt CONTENTS OF FILE2 //FILE3.txt CONTENTS OF FILE3 //FILE10.txt CONTENTS OF FILE10 //FILE11.txt...
  16. scottpeter

    Check file permissions

    Sorry for being stupid and not reading the man properly. I got it now. Thanks, Scott.
  17. scottpeter

    Check file permissions

    Oops, I missed the man test part. However I checked the man page for test. It gives only for r,w,x,d... etc. It does not give help for rw/rx or rwx. Thanks, Scott
  18. scottpeter

    Check file permissions

    PHV, That was cool. Just out of curiosity. How can I check for rw,rx or rwx permissions and print the same message. Thanks, Scott
  19. scottpeter

    Check file permissions

    I need to check the permissions on a file or a directory. If I have read/write access I want to process that file/files in the directory. Case I do not have either of these accesses, give a message that the file does not have required privileges and cannot be processed. Can somebody please...
  20. scottpeter

    how to find blank characters in a column

    I am still not clear how to use it. Suppose my data file has values like this with 'Ç' as delimiter, how will I check the values between these special characters. Ç000002ÇCÇ702Ç869Ç Ç000002ÇCÇ541Ç826Ç Ç000002ÇCÇÇ994Ç Ç000002ÇCÇ Ç532Ç Ç000002ÇCÇ702Ç294Ç Thanks, Scott

Part and Inventory Search

Back
Top