Search Results

Search: Posts Made By: cartrider
15,863
Posted By cartrider
moving "then" to next line and enclosing the...
moving "then" to next line and enclosing the variable within double quotes did the trick.

Thank you all. This was very helpful
2,375
Posted By cartrider
DEV> echo $str1 Submitted request 25574824 for...
DEV> echo $str1
Submitted request 25574824 for CONCURRENT SQLAP RUAPACTUALSEXT Y RUAPACTUALS122313100616.dat "2013/01/12 14:50:44" "2013/01/16 16:20:21" Normal completion
DEV> echo $str2...
15,863
Posted By cartrider
Compare strings with space in if statement
DEV> vi test_if_statement.sh
"test_if_statement.sh" [Incomplete last line] 9 lines, 205 characters
proc_out="Normal completion"
proc_out_comp="Normal completion"
echo 'proc_out:'$proc_out
echo...
2,375
Posted By cartrider
Format of string 1 is space delimited, but can...
Format of string 1 is space delimited, but can have any number of fields.
'Normal completion' is just one output. It could have any number of fields in place of 'Normal completion'

I have tried...
2,375
Posted By cartrider
Cut the string
---------- Post updated at 10:31 AM ---------- Previous update was at 10:28 AM ----------
Hello,
I am trying to get the string cut based on the following needs:

String1=Submitted request...
28,735
Posted By cartrider
Get the following error for the script provided ...
Get the following error for the script provided

DEV> vi dateformat.sh
#!/bin/ksh
cur_date="${1:-2013/03/13 13:24:50}"
printf "Processing date: %s\n" "$cur_date"...
28,735
Posted By cartrider
I am not getting the expected output of...
I am not getting the expected output of 13-MAR-2013 14:24:50

elise->DEV> echo $curr_date
2013/03/13 14:24:50
elise->DEV> date +'%d-%b-%Y %H:%M:%S' -d "$curr_date"
27-Nov-2013 16:17:27...
28,735
Posted By cartrider
Convert Date Format
Hello,
I want to change the format of date value in variable.

e.g. cur_date = '2013/03/13 14:24:50' (yyyy/mm/dd hh24:mi:ss)

I want to change this to '13-MAR-2013 14:24:50

Following code...
3,066
Posted By cartrider
mfj. I just tried your command, but got the...
mfj.

I just tried your command, but got the following message:

sed: illegal option -- i


same message repeated - one for each file.

Also, if there were multiple occurrences of this line...
3,066
Posted By cartrider
Search and Replace in multiple files
Hello,

I have hundreds of files in which I need to change email address. Here is what I am trying to do:

1. All text files are in a directory "a"
2. In the text file, I want to replace email...
3,243
Posted By cartrider
vgresh99, This is a very good solution when...
vgresh99,

This is a very good solution when there is a key. I wonder if it is possible to get the expected output when there is no key.
3,243
Posted By cartrider
vgersh99, Output should exclude line 0002 as...
vgersh99,
Output should exclude line 0002 as this is a change line not a new line.
/home/aa>nawk 'FNR==NR{f1[$0];next} !($0 in f1)' old.txt new.txt
0002 732 AC
0003 801 A
0006 ...
3,243
Posted By cartrider
Birei, Thanks for the update. Note that the...
Birei,
Thanks for the update. Note that the first line in your output is a 'Change' line. I am looking for only 'New' lines.
Also note the following error I am getting executing the same command...
3,243
Posted By cartrider
Help with file comparison
Hello, I am trying to compare 2 files and get only the new lines as output. Note that new lines can be anywhere in the file and not necessarily at the bottom of the file.

I have made the following...
Showing results 1 to 14 of 14

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