Search Results

Search: Posts Made By: nehashine
2,378
Posted By nehashine
I am so sorry.. yes, i would prefer...
I am so sorry..
yes, i would prefer explanation..so, please provide...
2,378
Posted By nehashine
It is printing line 13-31 ,,73-91,,133-151 etc...
It is printing line 13-31 ,,73-91,,133-151 etc whereas i want to print from line 34-74, 94-134 etc...
A quick reply would be of great help
2,378
Posted By nehashine
Not exactly. this is the reason i am asking you...
Not exactly. this is the reason i am asking you so that i can change the parameter so that it can work as per my requirement...
2,378
Posted By nehashine
Can you please describe how it is working?
Can you please describe how it is working?
2,378
Posted By nehashine
First 14 lines has to be deleted. Actually no.s...
First 14 lines has to be deleted. Actually no.s quoted by me can vary. As an e.g we can take that i want to print lines no 34-74 then 94-134 then 154 -174 and so on.

i.e. i want to print fixed...
2,378
Posted By nehashine
Delete 40 lines after every 24 lines from a file
Hello,

I have file of more than 10000 lines.

I want to delete 40 lines after every 20 lines.

e.g from a huge file, i want to delete line no from 34 - 74, then 94 - 134 etc and so on.
...
2,186
Posted By nehashine
Hi, your awk command is running fine. Can you...
Hi, your awk command is running fine. Can you please explain how it is working so that I can modify it further if i want to change field separator.
2,186
Posted By nehashine
Both the codes are not fulfilling my requirement....
Both the codes are not fulfilling my requirement. Codes are reversing all the alphabets irrespective of field separator.

e.g. my file has
abc & def & ghi

required output : ghi & def & abc
...
2,186
Posted By nehashine
How to reverse all columns of a file having some field separator?
Hello,

I have a file:
xandyandz
x & y & z
x*y*z*a

I require output as:
zandyandx
z & y & x
a*z*y*x

here all lines have different field seperator (and & * )based on that i want to...
2,079
Posted By nehashine
Hi Michael, can you please explain what it is...
Hi Michael, can you please explain what it is doing specially section -e 'x' ??
2,079
Posted By nehashine
Hello Binlib, I got your idea & now i am...
Hello Binlib,
I got your idea & now i am fetching line no and reducing that to 1 and then running sed command. its working fine...
thanks!!!

Hello dcwayx,
I could not get awk command posted by...
2,079
Posted By nehashine
Want to Insert few lines which are stored in some file before a pattern in another file
Hello,

I have few lines to be inserted in file_lines_to_insert.
In another file final_file, I have to add lines from above file file_lines_to_insert before a particular pattern.

e.g.
$ cat...
2,588
Posted By nehashine
Hello Scrutinizer, I have almost same...
Hello Scrutinizer,

I have almost same requirement as of this post. Just one change, I want to insert these lines before a pattern of file1.
Can you pl. tell me how can I do it?
5,537
Posted By nehashine
Hi, Seeing your error, seems you have not put a...
Hi,
Seeing your error, seems you have not put a space between expr and ${old}. Use below command.
a1=`expr $old / 50`
988
Posted By nehashine
Hi You can also use: grep -w '1\.' inputfile ...
Hi
You can also use:
grep -w '1\.' inputfile

It will search the exact pattern "1." and capable of filter "1" also if present.
2,827
Posted By nehashine
Its working perfectly in linux. Thanks a lot!! ...
Its working perfectly in linux. Thanks a lot!!

If possible, Can you suggest something which is compatible in solaris also as this is not running is solaris :(

---------- Post updated at 11:49...
2,827
Posted By nehashine
Delete a line between selected lines using sed or any other command
I want to delete a line between selected lines using sed:
e.g. : Between "bus" to "pins", delete lines conaining "signal" word.
Input :

bus
direction
signal new
signal old
pins
signal ok...
7,260
Posted By nehashine
Thanks drl, Its working fine when my files...
Thanks drl,

Its working fine when my files are named with file.
Can you tell me the procedure/code from where i can give the name of my files as arguments?

thanks once again
priyanka
7,260
Posted By nehashine
Actually my need is that any line in the four...
Actually my need is that any line in the four files should not be same
e.g.
cat File1
neha
pg

cat file2
aru
arin

cat file3
sample
apple

cat file4
apple
neha
juice
1,396
Posted By nehashine
You can use below command: sed 's/( *[a-z]*...
You can use below command:
sed 's/( *[a-z]* *[A-Z]* *)//g' mycsvfile
7,260
Posted By nehashine
Require compare command to compare 4 files
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each...
5,830
Posted By nehashine
If you are using linux environment, insert below...
If you are using linux environment, insert below line in your script dos2unix file

If solaris, then dos2unix file > file2
\mv file2 file
actually this problem usually occurs when you are taking...
Forum: Linux 07-15-2010
2,426
Posted By nehashine
I am referring the icon tray in linux environment...
I am referring the icon tray in linux environment which holds all the icon of all the terminals opened by us
1,392
Posted By nehashine
Thanks, its working fine:)
Thanks,

its working fine:)
1,392
Posted By nehashine
Problem in awk command
Hello,

I am getting problem in awk command during matching (using if in awk) when there is special character "[" or "]"
I have tried by loosing the special meaning, still its not working
...
Showing results 1 to 25 of 38

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