Search Results

Search: Posts Made By: chris1234
5,076
Posted By chris1234
I got it. IFS=' ' Was the problem...
I got it.

IFS='
'

Was the problem :--)
5,076
Posted By chris1234
I have done IFS also before. The problem is when...
I have done IFS also before. The problem is when i use my logic as posted earlier then it reads the first row only and exit. I have used IFS reset IFS also and have used for loop also.

If i dont...
5,076
Posted By chris1234
It's a huge output. But i don't see anything...
It's a huge output. But i don't see anything unusual or a bug
5,076
Posted By chris1234
If i use a for loop it works fine but then the...
If i use a for loop it works fine but then the one which contains space is not read as one word
5,076
Posted By chris1234
Nope. same result. Reads only first row.
Nope. same result. Reads only first row.
5,076
Posted By chris1234
issue resolved
issue resolved
5,076
Posted By chris1234
Issue resolved
Issue resolved
5,076
Posted By chris1234
Thanks Vidhya. So i need to use AWK in order to...
Thanks Vidhya. So i need to use AWK in order to get the column which contains space. Got it. I tried IFS=',' and couple of other stuff but everytime i was running into this problem.
5,076
Posted By chris1234
File Space Problem
I have a file which have 2 columns.

chris doc,male
test,female

So in order to store the content of the first column i am doing this :-


for line in $( cat $test.csv ); do
...
1,628
Posted By chris1234
Question about formatting the output
I need to ask a question on how to format the output in a csv format. Right now i am running a shell script which executes a command and the following output is append through a unix script in a...
1,594
Posted By chris1234
Question on Initializing the Variable
What i am trying to do is cd to my directory first. If any of that folder contains "volcano" folder then create the same directory structure in the remote machine "lexus". This is what i am doing.
...
2,606
Posted By chris1234
Era thanks. Usually i do :- if[ ? != 0 ];...
Era thanks. Usually i do :-


if[ ? != 0 ]; then
SENDMAIL=1
.
.


Anyways i tried your solution era the value for STATUS is still 2 for the second run. So in other words i still get the...
2,606
Posted By chris1234
Question about Setting Flags
I have a script which will look for a test folder under the parent directory. If the folder contains test folder then create the same directory structure in other remote machine.

Once the...
2,404
Posted By chris1234
Thanks Wempy appreciated
Thanks Wempy appreciated
2,404
Posted By chris1234
so what about 4 hours? how can i do that? i dont...
so what about 4 hours? how can i do that? i dont have cmin or mmin in my unix machine. Any other ideas?
2,404
Posted By chris1234
By looking at the man pages mtime +4 will delete...
By looking at the man pages mtime +4 will delete the files last modifed 4 days ago not 4 hours ago right? Correct me if i am wrong.
2,404
Posted By chris1234
find command
We are using Unix AIx. i was curious if therer is a way to use find command to delete all the files in the folder which are 4 hrs old?
4,361
Posted By chris1234
Just ordered from Amazon.com. Hope to enjoy...
Just ordered from Amazon.com. Hope to enjoy reading this book.
4,361
Posted By chris1234
Thanks Shawn. Yea i came to know about those...
Thanks Shawn. Yea i came to know about those enclosing brackets earlier :--) []. But even if i am doing $d' xyz.log i do get the desired result. I am having a nightmare in using regex expression and...
4,361
Posted By chris1234
I got it. thanks
I got it. thanks
4,361
Posted By chris1234
Yea thats what i thought at the first glance and...
Yea thats what i thought at the first glance and i already tried that swapping 1 to 3 same result. It deletes everything from the file.


perl -MPOSIX -i -ne 'BEGIN{
...
4,361
Posted By chris1234
Well re formatiing the file is out of question....
Well re formatiing the file is out of question. Its a log file which is created by a java program. So re formatting the log file is out of question. I modified my script :-


perl -MPOSIX -i.bak ...
4,361
Posted By chris1234
Forward slashes missing where?
Forward slashes missing where?
4,361
Posted By chris1234
Regular Expression Problem
this is how my xyz.log file loooks like :-

[30/Dec/2008:12:03:07] info ( 816): CORE1116: Sun ONE Web Server 6.1SP5 B08/17/2005 22:09
[31/Dec/2008:12:03:08] info ( 817): CORE5076: Using [Java...
4,097
Posted By chris1234
No worries i got it. Thanks for all your helo
No worries i got it. Thanks for all your helo
Showing results 1 to 25 of 69

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