Search Results

Search: Posts Made By: udiptya
1,941
Posted By udiptya
Can anybody help me with my query?
Can anybody help me with my query?
3,139
Posted By udiptya
I am able to do that. Thanks a lot for the...
I am able to do that. Thanks a lot for the support.:)
3,139
Posted By udiptya
Your answer is not very clear to me. Can you...
Your answer is not very clear to me. Can you explain it with an example!
3,139
Posted By udiptya
Unix coding tip required
Hi!

Suppose I am at a location xyz:/abc1/abc2/abc3

Is it possible to move to another location xyz:/mnl1/mnl2/mnl3

by some coding within a script?
1,941
Posted By udiptya
file1: name nameabc bcd nameabcdefg ...
file1:
name
nameabc
bcd
nameabcdefg


file2:
age
age1111
age2345
age6743

Above given are my two files. I have issued a command like

echo "`paste -d'|' file1 file2`" > file3

I am...
1,941
Posted By udiptya
Hi what u suggested I have tried that already but...
Hi what u suggested I have tried that already but the thing is I want to position them the parameters one below the other something like shown below

name\t\t\t\t\t\t\t|age...
2,465
Posted By udiptya
Thanks a lot! Its working now!:)
Thanks a lot! Its working now!:)
1,941
Posted By udiptya
Shell program:Help required on file formating
I have two files file1 and file2 as shown below:
file1:
name
nameabc
bcd
nameabcdefg


file2:
age
age1111
age2345
age6743

I have pasted one file on the other with the delimiter "|" and...
2,465
Posted By udiptya
hey manas, I didn't understand why the while...
hey manas,

I didn't understand why the while loop is required?

I tried the following way. It isn't giving any error but no outputs also:(

x=`nawk -F 'NR == 1 {print $1}' | sed...
1,591
Posted By udiptya
Help required on file formating
I have two files file1 and file2 as shown below:
file1:
name
nameabc
bcd
nameabcdefg


file2:
age
age1111
age2345
age6743

I have pasted one file on the other with the delimiter "|" and...
2,465
Posted By udiptya
It is a multi line file and the inbetween spaces...
It is a multi line file and the inbetween spaces are also not constant ie. name(???), age(???) can be separated by single space/tab/new line.
2,465
Posted By udiptya
Help required on Shell Programming!
I have a file named "file1" with contents as shown below:

name(abc) age(123)
empid(a123) degree(graduate)
.
.
.
.

Now suppose I know that the format of my file is as...
6,130
Posted By udiptya
Thanks a lot. It worked! I tried that way but I...
Thanks a lot. It worked! I tried that way but I was using NR in place FNR.
Thanks again!
6,130
Posted By udiptya
Yes, that can be done but for a long table if you...
Yes, that can be done but for a long table if you have to search each element of the field, you will require a lot of code.
Whereas I am looking for a very genaralised pattern!
6,130
Posted By udiptya
I have understood your point of view btu I guess...
I have understood your point of view btu I guess I couldn't properly express you with my problem. So, I am writing a part of my program underneath

my file is something like this with tabs and...
4,769
Posted By udiptya
Thanks! It worked!
Thanks! It worked!
4,769
Posted By udiptya
Help on IFS command!
Hi!
I am working in korn shell. I want to reset the dimiliter for the set command to "|" but instead of a command prompt return I am getting something as below

After issuing the command I am...
6,130
Posted By udiptya
Your command is working fine for the type of file...
Your command is working fine for the type of file you gave as an example. But consider the file I have given as an example in such a case the command

count=1
AWK -F"|" '$1 ~ /'$count'/ {printf...
6,130
Posted By udiptya
I also tried with a slight modification of your...
I also tried with a slight modification of your command

AWK -F"|" '$1 == /'$count'/ {prinf $4}' file1

but this didn't work either
6,130
Posted By udiptya
Sorry, I should have given a bit of detail. My...
Sorry, I should have given a bit of detail. My file is like this
CAT file1
abc |123 |abc123
bcd |234 |bcd234
cde |345 |cde345

In such a situation the command will not work. I...
6,130
Posted By udiptya
The AWK help is not working
Hi,

Thank you for your initiative but the suggestion isn't working. Can you suggest something else.
6,130
Posted By udiptya
Help required on AWK command
I have two questions:

(Q1) I am using a loop and want to print a particular field of a table using the AWK command by accessing one row at a time by validating NR with the loop counter. I am...
1,868
Posted By udiptya
Thanks for the AWK command help
Thanks for the AWK command help
1,868
Posted By udiptya
help required on awk command
UNIX is new to me. I have problem that I am taking a string as input from keyboard and storing it in a variable. Now I want to use the AWK command to search a particular field in a table using this...
Showing results 1 to 24 of 24

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