![]() |
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 |
| how to find the file size in unix | lmraochodisetti | UNIX for Advanced & Expert Users | 5 | 12-16-2008 08:51 AM |
| How to find size of a file | kittusri9 | Shell Programming and Scripting | 4 | 04-28-2008 08:01 AM |
| Find file size and date | gsusarla | UNIX for Advanced & Expert Users | 10 | 04-08-2008 05:33 PM |
| command to find out total size of a specific file size (spread over the server) | abhinov | SUN Solaris | 3 | 08-08-2007 06:48 AM |
| find the file by size | rooh | UNIX for Dummies Questions & Answers | 1 | 08-16-2001 07:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find file size
My Question is
----------------- Assume you've a directory (i.e /home/test/) which contains n number of files, rename all the files which has byte count more than zero (0) with .bak extension. Write shell script to achieve this output, execute the same without using". / " in front of program name. Could someone help me? |
|
||||
|
Error while running the script
hi,
When i run the code given by you it renames all files irrespective of .bak extension like before: student.txt after code is run -------------------- student.txt.bak this is same for all other files including .bak file i.e if a file exists with name tst.bak after the code is run it is made as tst.bak.bak. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|