02-19-2010
Thanks SKMDU for the suggestion. Unfortunatley, I tried but it did not work for what I am doing. The router= string will change each time.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: JeffV
3 Replies
2. Shell Programming and Scripting
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)
Discussion started by: ramky79
1 Replies
3. AIX
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)
Discussion started by: dsdev_123
3 Replies
4. Linux
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)
Discussion started by: sire
2 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: srk
4 Replies
6. Shell Programming and Scripting
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)
Discussion started by: ramakanth_burra
6 Replies
7. Shell Programming and Scripting
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)
Discussion started by: Vasan
10 Replies
8. Shell Programming and Scripting
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)
Discussion started by: SAYGIN
7 Replies
9. Shell Programming and Scripting
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)
Discussion started by: sumguy
6 Replies
10. Programming
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)
Discussion started by: grabbitmedia
1 Replies