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
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
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...
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...
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
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...
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...
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
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...
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
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
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...
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
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.