Search Results

Search: Posts Made By: loktamann
2,223
Posted By loktamann
All 3 resolutions worked for me perfectly. Thank...
All 3 resolutions worked for me perfectly. Thank you so much. you guys never fail to help out. Thanks again!
2,223
Posted By loktamann
awk to convert CSV into colums
My file (FILE1) looks like this:
HiringManager_RHMC, DirectSupervisor_RHMC, ProcessServerReadAccess_ST

I'd like to turn into:
HiringManager_RHMC
DirectSupervisor_RHMC...
5,104
Posted By loktamann
sort -k4n -k1,1M -k2,3n file worked perfectly....
sort -k4n -k1,1M -k2,3n file worked perfectly. Thank you so much!
5,104
Posted By loktamann
Sort -t: -k1
My file1.txt looks like below:Feb 03 15:58:27 2020
Feb 03 16:01:23 2020
Feb 03 16:11:29 2020
Feb 04 11:01:49 2020
Jan 20 16:27:38 2020
Jan 20 16:29:51 2020
Jan 20 16:44:39 2020
Jan 20 16:56:41...
2
1,381
Posted By loktamann
perfect. I sort -u and then: sdiff -l...
perfect.

I sort -u and then:
sdiff -l LDAPBIND_SVC_LMRK.LMRK.2 LDAPBIND_SVC_LMRK.LSF.1 | grep -w "("

Again, thank you much.
2
1,381
Posted By loktamann
Sdiff
file1:
USER:XACME\cn3937
User:XACME\z01220
User:XACME\z01404
User:XACME\z02102
User:XACME\U17234
File2:
USER:XACME\lawson
USER:XACME\cn7913
USER:XACME\cn8037
USER:XACME\cn8042...
2
1,085
Posted By loktamann
Grep
i have content like this printmanager&_PAGESIZE=25&_USERNAME=PDC\rlawson&_FINDKEYFIELD=TOKEN
I do
grep -w "USERNAME=PDC\rlawson" and did not get anything. Any idea? Thank you much in advanced!

...
5
sed
1,480
Posted By loktamann
Perfect! Thank you much. Have a nice day.
Perfect! Thank you much. Have a nice day.
5
sed
1,480
Posted By loktamann
my attempt: sed -n -e 1,21p -e 4p test.log - it...
my attempt:
sed -n -e 1,21p -e 4p test.log - it works, but sometimes the word "JOBSTEPREPORT" is no at 21st position.
5
sed
1,480
Posted By loktamann
sed
DATADUMP 100
JOB
DspUserName lawson
JobName CU201TEST
Description
Type 1
FilePathName
JOBSTEP
StepNbr 00000
StepKey 00000
Description Currency...
659
Posted By loktamann
Many thanks to y'all!
Many thanks to y'all!
659
Posted By loktamann
Ls = find
ls -ltr ??src/*.err is equivalent to what syntax in find
I only want to list *.err files in ??src DIRs
Thank you much for any help you can provide.
[/code]---------- Post updated at 08:55 AM...
1,053
Posted By loktamann
Thank you both so much for helping out. I am on...
Thank you both so much for helping out. I am on windows with cygwin. It seems to work fine for me. Again, thank you!
1,053
Posted By loktamann
Insert commas
Original content:
ACACCTCAT 129 | ACACCTCAT 0
ACACCTCATX 171 | ACACCTCATX 0
ACACRESRT 0 ...
1,251
Posted By loktamann
That's exact what I wanted sir. Thank you so...
That's exact what I wanted sir. Thank you so much. I will not forget to use code tag from now on. Again, thank you.
1,251
Posted By loktamann
Insert line
My file looks like this. When I see dn:, i'd like to insert a line above that. Sorry, i have no idea how to insert a line above so i won't be able to put in a code tage. Thank you so much for your...
3
2,548
Posted By loktamann
I am an idiot. I forget about searching beginning...
I am an idiot. I forget about searching beginning or ending of word. grep -v '^0' works perfectly.

Scrutinizer, i love your code also.

Again, thank you so much for your time and assistance on...
3
2,548
Posted By loktamann
Grep
When i do:
ls -ltr FILEPR*
700 FILEPR
0 FILPRHR
775 FILEPRDR


ls -tlr FILEPR* | grep -v 0

Result: 775 FILEPRD

I do not want 700 FILEPR to get removed; only 0 bit file.

I really...
1,249
Posted By loktamann
Match up permission
I'd like to change my test server folder to match with my production server folder.

lets say, production and test server folder names, accounting.

production has perm of 775 on accounting...
2,179
Posted By loktamann
i used while and grep -v to get unwanted tables....
i used while and grep -v to get unwanted tables. Again, thank you so much for helping.
2,179
Posted By loktamann
RudiC, your code works perfect, but please show...
RudiC,
your code works perfect, but please show me how to get extract table in file2 (table1 5) ?

my preference result:
test1 123 test1 111 different
test2 200 test2 200
test3 300 test3 300...
4,668
Posted By loktamann
I found this on unix.com sed...
I found this on unix.com
sed 's/\<apple\>/XXX/g' filenameand solved my sed

I am digging for perl. Again, thank you.
4,668
Posted By loktamann
Replace exact word by perl
my inputfile:

This is a test and only a test for production - prod.


echo "This is a test and only a test for production - prod" | perl -pi -e 's/prod/test/g'

outputfile:
This is a test...
2,179
Posted By loktamann
Fellas, Thank you so much for a swift reply to...
Fellas,
Thank you so much for a swift reply to my post.

Mr. Singh,
I thought this is code tag:
sdiff file1 file2 | grep -v ">" > file3
cat file3 | awk '{print $1,$2}' > source1
cat file3 |...
2,179
Posted By loktamann
Compare
file1:
test1 123
test2 200
test3 300
test4 400
test5 500

file2:
table1 5
test1 111
test2 200
table2 100
test3 300
test4 400
test5 500

my needed result:

test1 123 test1 111...
Showing results 1 to 25 of 25

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