![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to serach if a new line character exists on the last line in a file | sunilbm78 | UNIX for Dummies Questions & Answers | 10 | 02-29-2008 02:15 PM |
| batch delete using find, files with # character | tphyahoo | UNIX for Dummies Questions & Answers | 0 | 05-30-2006 12:05 PM |
| Find files which contain a null character | Bab00shka | UNIX for Dummies Questions & Answers | 5 | 12-16-2005 10:41 AM |
| delete a line based on first character of the line | borncrazy | UNIX for Dummies Questions & Answers | 2 | 12-06-2005 03:27 PM |
| end of the line character | zomboo | Shell Programming and Scripting | 5 | 12-30-2004 05:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need to find last character in each line in all files
Hi,
I need to read each line in all files .If last character in each line is not ;(semicolon) then i need to append next line also.Here each line may consists of multiple semicolons( .but i need to read only last character.I need to achieve this using shell script.And i need to remove tht last semicolon also.I need to achieve this in all files in a directory and i need to redirect modified files to the same directory.How to achieve this? For example my file consists of asdfgh;adffg;afdfg; adfsffvfgggg; aedfdsfs fsff; Here i need output as asdfgh;adffg;afdfg adfsffvfgggg aedfdsfs fsff How to achieve this? |
| Bookmarks |
| Tags |
| perl, sed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|