![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 05:38 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
help in cut and moing a file
Hi All,
I am having 20 files with names like art_bg_11* I want only fisrt 100 characters in ech file and want to omit all extra charactes i tried cut -c 1-100 art_bg_11* >> art_bg_11* it gives 0 records . Is there is any way to do this ??? I have written a script(below) to do this , is there any way some option in cut command to do this #! /bin/ksh for i in `ls art_bg_11*` do temp=$i mv $i $i.bkup cut -c 1-100 $i.bkup >> $temp rm $i.bkup echo $i has beed modified done Thanks in Advance Last edited by arunkumar_mca; 11-12-2008 at 06:29 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|