Search Results

Search: Posts Made By: mady135
8,017
Posted By mady135
Thanks a lot RuDic...it...
Thanks a lot RuDic...it worked...:):):):):b::b::b::b::b:
8,017
Posted By mady135
So, I have added content of public key or...
So, I have added content of public key or authorized_keys of user B to user A's. I am not sure what file permission should be for both
8,017
Posted By mady135
Passwordless sftp using a different user than the runtime user
I am running a shell script as user A. In that script I need to execute a sftp that would transfer the file using another user B.
I am using the below command:

sftp -oPort22 B@remote server
...
3,447
Posted By mady135
Passwordless SFTP - Can connect from server A to B; but vise-versa not happening
Hi,

I am trying to execute password less SFTP between two servers A &B. While I was able to connect B from A; I am not able to connect the A from B.
I have done done similar steps for both...
4,814
Posted By mady135
Join two files combining multiple columns and produce mix and match output
I would like to join two files when two columns in each file matches with each other and then produce an output when taking multiple columns.

Like I have file A

1234,ABCD,23,JOHN,NJ,USA...
2,910
Posted By mady135
I am trying to do something like this: ...
I am trying to do something like this:

TODAYS_DATE=`date "+%Y%m%d %H:%M:%S"`
echo $TODAYS_DATE
awk 'BEGIN{FS=",";OFS=","} ($17 > $TODAYS_DATE) {print $0}' file.txt
2,910
Posted By mady135
Need to filter data based on sysdate
I have a file from which I need to filter out certain lines when field 17 is less than sysdate. The file has date in YYYYMMDD HH:MI:SS format.
Sample file is as below:


PRUM,67016800 ...
3,138
Posted By mady135
Yes, I adopted the below one awk...
Yes, I adopted the below one

awk 'BEGIN{FS=",";OFS=","} ($6==" ") {$6="00"} {print $0}' filename
3,138
Posted By mady135
thanks a lot! Now, I need to filter out those...
thanks a lot! Now, I need to filter out those lines that has field 17(which is a date field) either blank or less than equal to system date.

Appreciate your help.
3,138
Posted By mady135
awk to replace a specific field in certain condition
Hi,

I have a file like below

PRUM,67016800 ,CC ,C1,67016800 , ,Y,Y,2 ,CK,BX,FOX ,00000001,EA,00000001,20141120 00:00:00, ...
5,893
Posted By mady135
Thanks. I got the basics. Now here is detailed...
Thanks. I got the basics. Now here is detailed scenario.
I would like to read each line and then compare multiple columns with ceratin values and then print specific columns to a file or variable....
5,893
Posted By mady135
awk - read from a file and write conditional output
I have a file, which has '|' as separator; I need to read each line from that file and produce output to another file. While reading, I have certain condition on few specific columns (like column3...
5,321
Posted By mady135
Please find below the answers
Is your program supposed to read a list of Col=start,stop values from a file, or are these fixed values?
Ans : The col=start, stop values are fixed as mentioned.
Is there supposed to be a comma...
5,321
Posted By mady135
Thanks Don for your comments.
Don, I will keep this in mind going forward.
Your first assumption is correct, I would like to insert commas between the fields identified by the length from the sample line given.
5,321
Posted By mady135
Thanks !
Thanks, can you please go through the new example and let me know how to accomplish this
5,321
Posted By mady135
How to combing output of cut commands with a delimiter?
While looping through a file, I am cutting different length of characters (based on their length) like columns and want to produce the output in a separate file with different columns being separated...
8,121
Posted By mady135
awk new line issue, saying string can't contain new line character
Hi ,

I am doing some enhancements in an existing shell script. There it used the awk command in a function as below :

float_expr() {
IFS=" " command eval 'awk "
BEGIN {
result = $*
print...
2,705
Posted By mady135
explanation of test function
I have found a code some where, which looks like

if (test $value)
then
<do something>
fi


I am not understanding what is test doing here. I have seen test with !,-eq, -e etc.
But, the...
4,079
Posted By mady135
How to view files from a specific date/day
I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011.
Is there any...
12,791
Posted By mady135
syncsort
I have got the following error messahe in the log file while running the syncsort process in a unix script.

Starting the Syncsort Process
[SyncSort HP-UX/64 Rel. 3.9.0 Copyright (c) 2004...
2,202
Posted By mady135
Now its working fine.
I have found the bug...as i told you, the issue was not with fl_cnt or exclude_cnt. the issue was with tot_ln_cnt. the command

`wc -l ${OUTPUT_FILE_NAME}`

was giving the output "2465...
2,202
Posted By mady135
Its not working
Rohon,
I am getting the value of fl_cnt and exclude_cnt also....I think the problem is gerring generated while calculating ln_cnt....please help
2,202
Posted By mady135
expr not working
I am trying to get some coubt through the following code.

tot_ln_cnt=`wc -l ${OUTPUT_FILE_NAME}`
echo "tot_ln_cnt : "$tot_ln_cnt
fl_cnt=`ls -lrt *edi | wc -l`
echo "fl_cnt : "$fl_cnt...
3,677
Posted By mady135
how to delete lines from a file which starts with a specific pattern
I need to delete those lines from a file, which starts with 45.
How to do it?
2,775
Posted By mady135
Showing results 1 to 25 of 55

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