Search Results

Search: Posts Made By: apjneeraj
2,728
Posted By apjneeraj
Cron to schedule job at different times
Hi,

I want to run cron scheduler to run some script at different times of the day.But these times don't have some fix intervals. So how we can run jobs at 6:30AM, 1:00PM and 4:30PM everyday.

...
6,114
Posted By apjneeraj
Thanks a lot... it worked after little...
Thanks a lot... it worked after little modification... :)
6,114
Posted By apjneeraj
pattern search using grep in specific range of files
Hi,

I am trying to do the following:

grep -l <pattern> <files to be searched for>

In <files to be searched for> , all files should of some specific date like "Apr 8" not all files in...
2,283
Posted By apjneeraj
thanks buddies... it worked fine with both cat...
thanks buddies... it worked fine with both cat and "no cat". ..thanks a lot...
2,283
Posted By apjneeraj
Copy file after searching in a directory
Hi,

I am looking for an answer for following senario:

I have a text file (base.txt) which consist list of files to be searched like:
base.txt

abc.txt
def.txt
fgh.txt

Now i am going...
7,723
Posted By apjneeraj
sorting(both Ascending & Descending) files based on multiple fields
Hi All,

I am encountered with a problem while sorting a file based on multiple columns . I need to sort like:
(field2,ascending) , (field3,ascending) ,(field8,descending) ,...
1,946
Posted By apjneeraj
Thanks Buddy.....your solution worked just after...
Thanks Buddy.....your solution worked just after one modification ....

I changed it to: sed 's/(sked.*\)\( Y.*\)/\2/' input_filename.txt

Thanks a lot...

Neeraj
1,946
Posted By apjneeraj
Remove a non-specific word froma file
Hi All,

I am encountering a problem while removing a string from a file. Actually, i have done this thing before using sed to replace the word but this time word is not specfic. its value is...
4,013
Posted By apjneeraj
Thanks all of you.I used the above code and it...
Thanks all of you.I used the above code and it worked perfectly.

Thanks once again.

Regards
Neeraj
4,013
Posted By apjneeraj
Extract multiple repeated data from a text file
Hi,

I need to extract data from a text file in which data has a pattern. I need to extract all repeated pattern and then save it to different files.
example:

input is:
ST*867*000352214...
12,624
Posted By apjneeraj
sorry buddies, now it is working....it was the...
sorry buddies, now it is working....it was the problem with old version of sort command in my system.

Thanks for your support.
Neeraj
12,624
Posted By apjneeraj
Hi, I have tried with all options with sort...
Hi,

I have tried with all options with sort command but nothing is gonna working for me.

can anybody please help me out?

Thanks
Neeraj
12,624
Posted By apjneeraj
Thanks buddies for your responses.I got the real...
Thanks buddies for your responses.I got the real mistake i have made.Actually why you got the correct order not me , it is because of i have not mentioned the real files to you.i just took dummy...
12,624
Posted By apjneeraj
Thanks buddy. But still the order is not correct....
Thanks buddy. But still the order is not correct. The lines from both files got together correctly but order is not correct.

for example:

input1:
123 abc
456 def

input2:
123 ijk
123 ...
12,624
Posted By apjneeraj
Thanks for your reply.But the output is not...
Thanks for your reply.But the output is not coming in correct order. i tried with different option like -r but still it is not coming in correct order , i want.

Thanks
Neeraj
12,624
Posted By apjneeraj
Merge Two Files based on First column
Hi,

I need to join two files based on first column of both files.If first column of first file matches with the first column of second file, then the lines should be merged together and go for...
4,436
Posted By apjneeraj
Thank you very much...It worked fine.....
Thank you very much...It worked fine.....
4,436
Posted By apjneeraj
Actually i am a newbie, so could go so far .... ...
Actually i am a newbie, so could go so far ....
but i was thinking to add first %HD% for all unique numbers as soon as they encounter and in second phase to add %DT% everywhere else.

This is what...
4,436
Posted By apjneeraj
Want to add a word in front a of each line of a file
Hi,

Can anybody help me how to add a word in front of a line in a file.Actually it is bit tricky to add a word. i will give a sample for this:

Input :

1110001 ABC DEF
1110001 EFG HIJ...
Showing results 1 to 19 of 19

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