Search Results

Search: Posts Made By: forumthreads
19,992
Posted By forumthreads
Diff between 2 files using awk
Hi Scottn,

Many thanks for a quick response. I tried both you solutions.

with the grep I get the following message:

grep: illegal option -- f
usage: grep -hblcnsviw pattern file . . .
...
19,992
Posted By forumthreads
Diff between 2 files using awk
Hi Experts,

Could you please help me to find the difference between two files. I tried the diff command but did not like the output as it contained < and > signs and the line numbers. Is it...
7,324
Posted By forumthreads
Ygor, I tried this code and get the following...
Ygor,
I tried this code and get the following message, I have typed exactly as shown by you.
awk: syntax error near line 1
awk: bailing out near line 1
Any idea what i am doing wrong

Many...
7,324
Posted By forumthreads
Many thanks to help me. I tried this code but it...
Many thanks to help me. I tried this code but it returned the following result


G001 Pq
G001 sD
G003 F
G004 c


this is not good to me. I need to acheive the following result
...
7,324
Posted By forumthreads
Many thanks, your code works perfectly. I need...
Many thanks, your code works perfectly. I need some more help from you. when my CONTACT field values contain spaces between words then the code produces only the 1st value and ignores the rest of...
7,324
Posted By forumthreads
awk script to split field data
Hi Experts,

I have a Input.txt document which contains data fields seperated by tabs. There are 4 fields totally Named UNIQUE, ORDER, CONTACT and WINS. The UNIQUE field contains unique ID and the...
10,445
Posted By forumthreads
Arun, Thanks again. The wrapper script...
Arun,

Thanks again. The wrapper script seems to work with out any error messages however it does not produce any email. Here is what i did:

changed the sleep value to 30 in Wrapper so i need...
10,445
Posted By forumthreads
Hi Arun, Many thanks for your solution. ...
Hi Arun,

Many thanks for your solution.

This is what i have done to script updatevs to exit with a non-zero code on failures, please suggest if this is correct or not

###################...
10,445
Posted By forumthreads
Automatically Rerun a script based on previous execution output
Hi Experts,

I have a shell script called "updatevs" that is scheduled to run at 6.00 am everyday via cronjob. The cronjob will execute this script and output to a log file. The functionality of...
3,454
Posted By forumthreads
Hello again, Many thanks for your response....
Hello again,

Many thanks for your response. I tried the command with awk and nawk as below

awk 'NR == FNR {_[$1,$2] next }!(($1,$2) in _)' old new

but get an error message as

awk: syntax...
3,454
Posted By forumthreads
Remove duplicates
Hello Experts,

I have two files named old and new. Below are my example files. I need to compare and print the records that only exist in my new file. I tried the below awk script, this script...
3,512
Posted By forumthreads
Hello Franklin, Many thanks for your reply. ...
Hello Franklin,

Many thanks for your reply.

I tried both awk and grep commands but get syntax errors.

For the grep command the error is

>grep -v -f old new
grep: illegal option --f
...
3,512
Posted By forumthreads
Ignore identical lines
Hello Experts,

I have two files called "old" and "new". My old file contains 10 lines and my new file contains 10 + "n" lines.

The first field in both these files contain ID. I sort these two...
1,772
Posted By forumthreads
Many Thanks Ygor. Will try and let you...
Many Thanks Ygor.

Will try and let you know the result.
1,772
Posted By forumthreads
awk multidimensional values
Hello All,

Here is my input file content and i am trying to write an awk file that produces the output as shown below. i tried with my little knowledge but was not successful.

Input File...
5,095
Posted By forumthreads
matrixmadhan, Thanks for your help. Can you...
matrixmadhan,

Thanks for your help. Can you please tell me what would be the knock on effect of sourcing a .profile file

At the moment I am using my sqlplus as

sqlplus...
5,095
Posted By forumthreads
Porter, Many thanks for your help.
Porter,

Many thanks for your help.
5,095
Posted By forumthreads
Iorcon, Many Thanks for your help.
Iorcon,

Many Thanks for your help.
5,095
Posted By forumthreads
problem when the script is scheduled to run as cron job
Hello,

I have problem in executing a shell script. When the shell script is executed at the shell prompt the script works successfully but when the same script is run as a cron job it fails to...
10,890
Posted By forumthreads
Search for a string and copy the entire line
Hello All,

I am after the script or the command which can scan the entire file for a string $PART_ID and when found to extract/copy the corresponding $PART_ID value (e.g THIRE_PTY_SOFTWARE for...
Showing results 1 to 20 of 20

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