when interpreting '\0' the string would be terminated thereitself,
hence nullify the effect of '\0' as '\\0' in the string as below
then try the following code,
Hi,
Is there any way to display the permissions in octal format rather than "rwxrwxrwx" format.
I have a file and i want to see the permissions in octal format. Please help. (11 Replies)
Hello everybody,
I would like to understand why the printf function is returning me an octal value with this command :
printf %4.4d 0010 returns 0008
printf %4.4d 10 returns 0010
Thanks for help. (3 Replies)
Is there seriously not an easy way to do this? you really need a script for it? that is ridiculous! Please someone tell me there is an ls switch to view octal permissions instead of rwx i want 777. (1 Reply)
Hello all
I started computer science and C++ programming only 6 weeks ago with no prior knowledge. It's a great language, the only other one apart from English that I hope to speak fluently quite soon. I look forward to participating further on these forums, seeking answers and looking at previous... (3 Replies)
Using korn shell. I am reading a file line by line. If a record has a carriage return (octal 015) then I append the second record to the first record. Not all records have a carriage return. I have the unix shell script working with grep, but when my file has +100,000 records it runs slow. I would... (3 Replies)
Hi, I have downloaded a web page that I need to cleanup before passing to xmlstarlet.
Using UltraEdit's HEX utility part of my download is as follows:
3C 2F 61 3E 0A 09 0A 09 09 3C 2F 61 3E
which in ASCII is
</a>
</a>
I need to locate this string and replace it with just... (7 Replies)
As the title says, who does remember them?
I still have my ten digit one and is fully active.
IIRC it was the then user's account number, and mine came in 'xxxxxx,xxxx' format where the comma had to be replaced by a period.
The text mode __browser__ CIS, (Compuserve Information Srevice), was... (0 Replies)
Here are a few lines from my script. The problem I am having is that the statement for gstat returns this error:
line 43:
The statement is coming from gstat.
Is there a way to fix it? Apparently -eq 02 is coming up as some octal value, I need it to be recognized as 02.
Apparently in... (4 Replies)