Search Results

Search: Posts Made By: rakeshp
1,440
Posted By rakeshp
Command to extract empty field in a large UNIX file?
Hi All,

I have records in unix file like below. In this file, we have empty fields from 4th Column to 22nd Column. I have some 200000 records in a file. I want to extract records only which have...
1,480
Posted By rakeshp
Need help with UNIX command to get the latest file from list of files with timestamp
Hi All,

I have list of files like below with name abcxyz.timestamp. I need a unix command to pick the latest file from the list of below files. Here in this case the lates file is...
3,793
Posted By rakeshp
HI Don, ^M This is a carriage return,...
HI Don,

^M This is a carriage return, usually when files are transfered from windows to unix this special character is appearing at the end of the each record.This is a Single character and It is...
1,480
Posted By rakeshp
To remove any invisible and special characters from the file(exclude @#!$*)
Hi Guys,

My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$%

abc|xyz|acd¥£ó
adc|123| 12áí...
2,700
Posted By rakeshp
To remove any invisible and special characters from the file(exclude @!#$&*)
Hi Guys,

My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$%

abc|xyz|acd¥£ó
adc|123| ...
3,793
Posted By rakeshp
Hi Don, I am considering a character is...
Hi Don,

I am considering a character is special, if it not a alphanumeric and not space. In your code you considered only non numeric and not space special character. Please correct it to...
3,793
Posted By rakeshp
Hi Don Cragun/RudiC/nezabudka/All, As you...
Hi Don Cragun/RudiC/nezabudka/All,

As you suggested,Please see the sample data below replaced from actual data
...
3,793
Posted By rakeshp
Hi Don, Except space,all other non numeric...
Hi Don,

Except space,all other non numeric characters are treated as special characters. ^M represents two characters.

Thanks
Rakesh

--- Post updated at 07:10 AM ---

Actual data...
3,793
Posted By rakeshp
Thanks alot nezabudka. This code is working fine...
Thanks alot nezabudka. This code is working fine as of now.I will get back to you if there any more calrifications!

--- Post updated 01-30-19 at 03:04 AM ---

nezabudka/Don Cragun,

This code...
3,793
Posted By rakeshp
Hi Don Cragun/RudiC/nezabudka/All, Now I...
Hi Don Cragun/RudiC/nezabudka/All,

Now I have different requirement,. Totally i have 20 columns in each record. I need to remove ^M characters at the end of the each record and special characters...
3,793
Posted By rakeshp
Hi nezabudka, Thank you for the reply. sed...
Hi nezabudka,

Thank you for the reply. sed 's/[^\w]$//'. This code is working good so far in AIX. Can we use the same code in Linux as well?

Thanks
Rakesh

--- Post updated at 02:05 PM ---
...
3,793
Posted By rakeshp
Need help to delete special characters exists only at the end of the each record in UNIX file?
Hi,

I have a file in unix with 15 columns.It consists special characters(#,$,^M,@,*,% etc)at the end of the each record.I want to remove these special characters.I used the following:
Sed -e...
9,776
Posted By rakeshp
Thanks alot!
Thanks alot!
9,776
Posted By rakeshp
Thank you so much. This is what I am looking for....
Thank you so much. This is what I am looking for. Thanks alot.
9,776
Posted By rakeshp
Hi yes I studied and know that how to...
Hi

yes I studied and know that how to retrieve only one record with the below command awk 'NR==23' emp.lst but with the same command i need to get one more record that is record number 89....
9,776
Posted By rakeshp
awk command to retrieve record 23 and 89 from UNIX file
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:



I am...
1,136
Posted By rakeshp
awk command to retrieve record 23 and 89 from UNIX file
Hi Everyone,

I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file? Please let me know what is the awk command for this?

Regards
Rakesh
Showing results 1 to 17 of 17

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