Search Results

Search: Posts Made By: KidD312
Forum: Programming 06-27-2012
1,706
Posted By KidD312
Hi, My friend pointed out the mistake in my...
Hi,

My friend pointed out the mistake in my code and I'm posting the correction here. It was so easy yet I don't know how it was overlooked.

Outside loop :

string path = "inoutfiles";
...
2,094
Posted By KidD312
Passing full path as argument when it contains variable strings
Hi,

In directory "inoutfiles", I have folders fold0001, fold0002 and so on. Every folder has corresponding file file0001.txt, file0002.txt and so on. I want to perform a certain action on multiple...
Forum: Programming 06-24-2012
1,203
Posted By KidD312
strcpy takes arguments in order char*, const...
strcpy takes arguments in order char*, const char*, as does strcat.

Hence your code should be something like this:


const char* vbMsg01d = vbMsg01a;
char* vbMsg01e; ...
Forum: Programming 06-24-2012
1,706
Posted By KidD312
Passing full path as argument when it contains variable strings
Hi,

In directory "inoutfiles", I have folders fold0001, fold0002 and so on. Every folder has corresponding file file0001.txt, file0002.txt and so on. I want to perform a certain action on multiple...
1,169
Posted By KidD312
Thanks elixir_sinari. That really helped. ...
Thanks elixir_sinari. That really helped.

Though a more exact code desired is:
num=8;
while [ $((num+=1)) -le 20 ]
do
filename='printf "file%04d.txt\n" $num'
echo $filename
done
1,169
Posted By KidD312
I'm sorry if I wasn't clear. I want a string. I...
I'm sorry if I wasn't clear. I want a string. I want a string that one can somehow vary from file0009.txt to file0161.txt. I want to use this string in a lot of places.

Thanks!
1,169
Posted By KidD312
Working on files with names containing arbitrary indices in shell
Hi,

I want to run a command in bash on files with names as file0001.txt, file0002.txt, file0003.txt and so on. The indices I have to work on are arbitrary like from file0009.txt to file0161.txt....
1,684
Posted By KidD312
Thanks a lot! It really works. :)
Thanks a lot! It really works. :)
1,684
Posted By KidD312
Inserting duplicate lines in a file
Hi,

I copied the contents of a binary file into a .text file using hd (hexdump) command. The data in binary file is such that I get in many places like following

00000250 00 00 00 00 3f 2d 91...
Showing results 1 to 9 of 9

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