I'm trying to figure out how to do this efficiently with as little execution time as possible and I'm pretty sure using sed is the best way. However I'm new to sed and all the reading and examples I've found don't seem to show a similar exercise:
I have a long text file (i'll call it... (3 Replies)
I have a huge file with 13 million records , how do i split this file into 13 files which has 1 million records in each ( each record is one line)
I tried this but how to print the second million etc
cat file | head -1000000 > file1
cat file | tail -1000000 >file13
please shed some... (1 Reply)
Hello
I have a requirement where i have to split the file into number of files. Lets say i have 200 records and i need to split the file with 50 records each which would be 4 files. If the file has 60 records then first 50 records in first file and then rest of the 10 records in second file. if... (3 Replies)
I have a tab delimitted dataset with 4 fields. I like to split the second field into two, and have 5 fields. I like to remove the "-" sign when I get a new fiel. would you help?
It is like:
1223 100-5 rr dd
I need it like:
1223 100 5 rr dd (2 Replies)
Hello I need help with the following. I have strings like
#if defined(__def1__)
#if defined(__def1__) || defined(__def2__)
#if defined(__def1__) && defined(__def2__) && defined(__def3__).
#if defined(__def1__) || defined(__def2__) || defined(__def3__).
I need to print what is there in... (4 Replies)
Hi experts,
In the lines below I am trying to copy only the words which come after "//" into an array
short nloh; // Comments
int age; // Age of the person
Please help me in achieving this
After the code, the output of the array should
Comments
Age of the person (6 Replies)
I have a file with single line, that line contains just like the following sample
00200100293^30^1^bla bla ...._______To: zabell00200100293^30^3^aSub00200100293^30^4^ellaCc: Sanders,De on my desk__________00200100293^30^4^___________________________________00A00ABC0293^30^1^something___To: some... (10 Replies)
Hello, i want to take a one word from my file.
-- myfile.txt --
test
blablabla
suPHP_ConfigPath /home/performe/etc
blablabla
etc. bla bla.
-- myfile.txt --
How can i take performe from this file ?
Thank you. (7 Replies)
I will simplify the explaination a bit, I need to parse through a 87m file -
I have a single text file in the form of :
<NAME>house........
SOMETEXT
SOMETEXT
SOMETEXT
.
.
.
.
</script>
MORETEXT
MORETEXT
.
.
. (6 Replies)
I want to access query string properties by key using client side laguage like jquery or javascript.
window.location.search will be used but i dont have any idea how i wll be used to get query string parameters.
private URL removed (1 Reply)