Search Results

Search: Posts Made By: abhi1988sri
Forum: IP Networking 09-29-2013
9,307
Posted By abhi1988sri
Sorry again for not communicating properly.I did...
Sorry again for not communicating properly.I did try to code for the same and read about half duplex pipe and forking.

The problem I am facing is whenever I am closing my client window, server...
Forum: IP Networking 09-28-2013
9,307
Posted By abhi1988sri
Thanks for the reply..sorry if the code is...
Thanks for the reply..sorry if the code is misleading but I was following an online tutorial to learn network programming.

All i want to do is to keep client in a loop until the user types "quit"...
Forum: IP Networking 09-28-2013
9,307
Posted By abhi1988sri
Message passing from child to parent using pipes
Hi,

I am trying my hand in networking programming in C, and got stuck in piping.

I was following some tutorial and did the forking like :


while (1)
{
newsockfd =...
941
Posted By abhi1988sri
awk : finding and formatting
Hi ,

I was trying to find files of a particular date and did that but then I also wanted to format a field based on some condition so had put another if else in awk.
Now it is getting the files...
2,139
Posted By abhi1988sri
sorry my bad.. The code is: find ....
sorry my bad..

The code is:

find . -name "*" -ctime -6 | xargs cat | grep -E -v ^fileName\|^\([0-9]\) | awk -v DATE="${CURR_DATE}" -v DATE_LOG="$DATE_SYS" -v IN="" '
BEGIN {
...
2,139
Posted By abhi1988sri
Sorry, totally my bad.. find . -name "*"...
Sorry, totally my bad..

find . -name "*" -ctime -6 | xargs cat | grep -E -v ^fileName\|^\([0-9]\) | awk -v DATE="${CURR_DATE}" -v DATE_LOG="$DATE_SYS" -v IN="" '
BEGIN {
...
2,139
Posted By abhi1988sri
SunOS 5.10 But does it have to do with OS? I...
SunOS 5.10

But does it have to do with OS? I think I am putting it in a wrong way.
2,139
Posted By abhi1988sri
Thanks for the reply but didnot help.. find...
Thanks for the reply but didnot help..

find . -name "*" -ctime -6 | xargs cat | grep -E -v ^fileName\|^\([0-9]\) | awk -v DATE="${CURR_DATE}" -v DATE_LOG="$DATE_SYS" -v IN="" '
BEGIN {
...
2,139
Posted By abhi1988sri
awk if else problem
Hi,

I am trying to put if else on some field of a file but not getting it where to put it.

find . -name "*" -ctime -6 | xargs cat | grep -E -v ^fileName\|^\([0-9]\) | awk -v DATE="${CURR_DATE}"...
1,378
Posted By abhi1988sri
yes this forward slash : ";NS;N/A;" but just...
yes this forward slash : ";NS;N/A;"

but just to show the indentation , i have split the lines like that.

But it is not working because of "N/A". how to handle this slash?
1,378
Posted By abhi1988sri
awk - special character not working
Hi,

I am trying to use forward slash in awk. While running the command through console, its working fine but not working while running it through shell script.

find . -name "*" -ctime -6 |...
1,234
Posted By abhi1988sri
Thanks for the reply yoda.. Sorry the code...
Thanks for the reply yoda..

Sorry the code is not intented.. I will keep that in mind for future.

What I am trying to do is..

finding some files and using the contents of the file to create...
1,234
Posted By abhi1988sri
awk syntax problem
Hi,

I am using this awk command in my shell script :

find . -name "*" -ctime -6 | xargs cat | grep -E -v ^fileName\|^\([0-9]\) | awk -v DATE="${CURR_DATE}" -v DATE_LOG=$DATE_SYS 'BEGIN...
5,954
Posted By abhi1988sri
like I want to find files of "15th June 2013" ...
like I want to find files of "15th June 2013"

I will be using this in

for files in `find ${ERR_DIR} -name "*"`
do
while read line
do
INPUT_FILE_NAME=`echo $line| cut -d';' -f1`...
5,954
Posted By abhi1988sri
Find files for a specific date
Hi,

I am looking to find files of a specific date.
I am on Sun Solaris so newermt doesnot work..

I thought of using mtime but not getting how to use it.

Please help me with this..

...
5,321
Posted By abhi1988sri
Read line from a .gz file
Hi ,

I am trying to read a .gz file through while and for loop like :

for files in `find . -type f -name "*.gz"`
do
while read line
do
echo "`wc -l $files|awk '{print $1}'`;`echo $line...
1,025
Posted By abhi1988sri
there is a variable r1=10..:) ----------...
there is a variable r1=10..:)

---------- Post updated at 05:58 PM ---------- Previous update was at 05:32 PM ----------

Done with this...

for i in "1" "2" "3" "4"; do eval echo \${r${i}};...
1,025
Posted By abhi1988sri
Variable value not getting printed
Hi,

I ma trying to do this but don't know why it is not happening?

$r1=10

for i in "1" "2" "3" "4"; do x=`eval echo $i`; echo r${x}; done

output:
r1
r2
r3
r4

also tried
...
1,638
Posted By abhi1988sri
Get yesterdays Date for Input Date
Hi,

I have been trying to get the yesterdays date for the Input date I pass.

I know how to do for the current timestamp but how to do for the input date.

Is there any way I can convert to...
2,214
Posted By abhi1988sri
but thats just the scenario i.e. file names...
but thats just the scenario i.e. file names 1,2,3,4...
files names are different , how to handle the formatting with this?
2,214
Posted By abhi1988sri
Yes, what you are saying is correct. The output...
Yes, what you are saying is correct.
The output of command will provide the output in that way only.

But we need the output to be in the form as shown in expected output.
Is there a way to...
2,214
Posted By abhi1988sri
Paste command formatting
Hi,

I was trying to concatenate some files using paste command along with some formatting but getting stuck.

The problem is:

cat 1.txt
A

cat 2.txt
B
C

cat3.txt
D
E

cat...
2,316
Posted By abhi1988sri
i tried this too but same problem.. it is...
i tried this too but same problem..
it is removing "euro" sign from the file.
I dont know why this is happening.
2,316
Posted By abhi1988sri
Dos2UNIX formatting problem
Hi,

I was trying to dos2unix a file that has some special characters but dos2unix converted those into different format. I am working on sun server.
I guess the default for dos2unix on sun...
1,316
Posted By abhi1988sri
awk command optimization
Hi,

I need some help to optimize this piece of code:



sqlplus -S $DB_USER/$DB_PWD@$DB_INSTANCE @$PRODUCT_COLL/$SSA_NAME/bin/tools/sql/tablespace.sql | grep -i UNDO_001_COD3 | awk...
Showing results 1 to 25 of 26

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