![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to delete line with matching text and line immediately after | orahi001 | UNIX for Dummies Questions & Answers | 6 | 01-14-2008 09:34 PM |
| Please respond immediately | deepti.1104 | Shell Programming and Scripting | 3 | 08-30-2007 11:01 PM |
| I need help immediately. Please help me | Sheethal | UNIX for Dummies Questions & Answers | 4 | 07-26-2007 03:11 AM |
| UIDs being overwritten immediately | xsys2000 | AIX | 2 | 05-08-2007 10:00 AM |
| Need a Shell Program immediately | praji | Shell Programming and Scripting | 4 | 01-22-2002 01:09 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
please help immediately
how can i check if the size of my file is greater than 5MB and if it is so then how can I direct my data to another new file.
the data will be in the form of SQL query |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Can you explain the scenario and what you want to redirect?
|
|
#3
|
||||
|
||||
|
this will help you to get size of the file:
Code:
ls -l filename | awk '{print $5}'
|
|
#4
|
||||
|
||||
|
From man find :
Quote:
|
|
#5
|
|||
|
|||
|
I believe you need to use a "+" in front of the 5M...otherwise it will only look for files exactly 5MB.
|
|||
| Google The UNIX and Linux Forums |