This is a discussion on contents of files within the Shell scripting forums, part of the Development/Scripting category; Hmm If you are looking at speed then C app will do the job. As far as ^M ..... it ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
|||
|
also,
what if i want some lines deleted. From those 193 lines of data, i might have to delete some selected lines based on column one data ( which we have erased from the original data) in all the .txt files. I know that i have to write a new file say test.sed in which i write down all patterns which i want to be modified and then use $ sed -f test.sed INPUTFILE.TXT havent understood much about the pattern finding and deleting whole line from file! once all the .txt files are modified ( we can also delete the first 27 line we can append all the column two data in a single final file and ofcourse remove the ^M from the files.what do u advise? |
|
|||
|
How do i reverse the data order. right now output_file had data in descending order based on column one data. I want the last data to be at the beginning of file.
to put it simply, right now data in the output file is 14.232, 13.2332, 2.343, 6.89, .........10.23, 11.234. But i would like the file to be 11.234, 10.23, .......6.89, 2.343, 13.2332, 14.232. Havent thought much about it. Any ideas? |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UNIX list a backup tape contents | chiku | Getting started tutorials | 0 | 04-27-2007 05:46 PM |
| Shell script for automatic conversion of files in tar files | kasimani | Shell scripting | 2 | 02-08-2007 04:45 PM |