Sponsored Content
Full Discussion: Wrong output in find command
Top Forums Shell Programming and Scripting Wrong output in find command Post 302418249 by NPRao on Monday 3rd of May 2010 03:53:03 PM
Old 05-03-2010
You can find more information using the man find command for its usage.

Refer the '.' by your 'path'. In your example,

find /home/student/dir1 -type f -1024c

Quote:
Also 1024c is also displaying files that have a 1kb size.
You can change the size to 1023c in the command.

Last edited by NPRao; 05-03-2010 at 05:01 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

output of find command

Hi, I am confused about the output of find command. Please see the two find commands below. When i put "*.c" i get lots of files. But when i put *c only i get only one file. Any answer?? $ find . -name "*c" ./clarify/cheval/hp_server/rulemanager/rulemansvc... (3 Replies)
Discussion started by: shriashishpatil
3 Replies

2. UNIX for Dummies Questions & Answers

problem with output of find command being input to basename command...

Hi, I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script. I am planning to do like this: if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies

3. Shell Programming and Scripting

Sort command giving wrong output

Hi all, I have a problem with sort command. i have a file which looks like this: "file1 1073 java/4 1073 java/180 1073 java/170 1073 java/176 1073 java/167 1073 java/40 1073 java/33 1073 java/136 28988 java/76 28988 java/73 28988 java/48 28988 java/26" and i want to sort... (8 Replies)
Discussion started by: usha rao
8 Replies

4. Shell Programming and Scripting

tr command giving wrong output

Hi All, i have a file which have many fields delimited by ,(comma) now i have to show only few fields and not all. the sample text file looks like this: TYPE=SERVICEEVENT, TIMESTAMP=05/06/2009 11:01:40 PM, HOST=sppwa634, APPLICATION=ASComp, FUNCTION=LimitsService, SOU... (8 Replies)
Discussion started by: usha rao
8 Replies

5. UNIX for Advanced & Expert Users

what is wrong with this find command

i am trying to find the files which are more than 100MB and it was created 10 days ago. find /lola/loaded -size +102400 -mtime -10 -print | xargs ls -ltr -rw-rw-r-- 1 lola_adm gdrmp 82054170 Jun 23 06:17 /lola/loaded/ILMEMBER20090622.txt -rw-rw-r-- 1 lola_adm gdrmp 652080494 Jun 24... (3 Replies)
Discussion started by: sudhiroracle
3 Replies

6. Emergency UNIX and Linux Support

getting wrong output with AWK command!!!

i have a file which gets appended with 9 records daily and the file keeps growing from then...i use to store the previous day files count in a variable called oldfilecount and current files count as newfilecount.my requirement is that i need to start processing only the new records from the... (3 Replies)
Discussion started by: ganesh_248
3 Replies

7. Shell Programming and Scripting

Check my script and correct the find command if wrong

Hello All, Here I am trying to find all the directories whose name starts with EFS or HOTFIX like in below example and below is my code but I don’t know why this is not working correctly. drwxr-xr-x 3 qabuild denccefs 4096 Sep 23 21:36 EFS110929A_SOURCE/ -rwxrwxr-x 1 qabuild... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

8. Shell Programming and Scripting

Grep command showing wrong output in Linux

Hi All I am trying to run a script in linux wherein i have a command like this grep ^prmAttunityUser= djpHewr2XFMAttunitySetup_ae1_tmp djpHewr2XFMAttunitySetup_ae1_tmp is a temporary file in which the user value is stored but this command in the script returns me balnk value whereas it has a... (4 Replies)
Discussion started by: vee_789
4 Replies

9. Shell Programming and Scripting

Output of find command to variable?

Hi, I'd like to assign the output of the find command to a variable. What I need is to run the find command, and if it returns zero files, the program exits. so i'm trying to assign the output of the find command to the $var1 variable....and then if this is less than one, I echo a... (2 Replies)
Discussion started by: horhif
2 Replies

10. Shell Programming and Scripting

If && command giving wrong output

Hi All, I am trying to run a script which will search for 2 strings(stopped,started) in a text file and echo an output depending on below condition -bash-3.2$ cat trial1.txt v ggg f -bash-3.2$ cat trial1.sh VAR9=` grep 'stopped' /tmp/trial1.txt` VAR10=` grep 'started'... (4 Replies)
Discussion started by: srkmish
4 Replies
BURN(1) 							       Burn								   BURN(1)

NAME
burn - record from various sources to optical media (CD, DVD) SYNOPSIS
burn MAIN_MODE [OPTIONS]... [FILE/S]... burn --help DESCRIPTION
CD-writing program/script. Features Data-CD, Audio-CD, Copy on the fly, Iso-CD. CONFIGURATION
Configuration files for burn are: ~/.burnrc or /etc/burn.conf. You can edit them to change values. If you don't have these files you can: 1. use burn-configure utility 2. take the configuration template, edit and copy it as ~/.burnrc or /etc/burn.conf MAIN MODES
-D, --data-cd To create Data-CD -I, --iso-cd To create ISO-CD -C, --copy-cd To copy CDs -A, --audio-cd To create an audio CD from WAV, MP3 and ogg files EXAMPLES
# burn -D -p /etc/ Creates a CD with /etc/ contents. (you will find files and directories contained in /etc in CD's root.) # burn -D -p /home/bigpaul/video/summer_2003/spain.tar.gz Creates a CD with spain.tar.gz in CD's root # burn -D -r /etc/ Creates a CD containing the whole /etc/ directory. (-r preserves path) # burn -D -c /mail_2003 /home/bigpaul/Mail -p /boot/vmli* Creates a CD containing the whole /home/bigpaul/Mail renamed into /mail_2003. (-c changes path name). This command also adds in CD's root every vmli* file in /boot/ directory # burn -I -n image.iso Burns image.iso # burn -C Copy CDs (disk at once). # burn -A -a *.wav Creates an Audio CD. Tracks come from wav files # burn -A -a *.mp3 Creates an Audio CD. Tracks come from mp3 files # burn -A -a *.ogg Creates an Audio CD. Tracks come from Ogg Vorbis files # burn -A -a *.mp3 file.ogg track01.wav Creates an Audio CD preserving input order. In this example the first audio tracks will come from mp3 files, than we will find the one from file.ogg and finally the one from track01.wav GENERAL OPTIONS
-s, --simulate to perform a burn simulation DATA-CD OPTIONS -p, --path add file/s or path's content to CD-ROM's root. e.g.: -p /cvs/myproj/. In this example we will find CD-ROM's root filled with /cvs/myproj/ contents, but no /cvs/myproj/ will be created -r, --preserve-path add file/s or path's content to CD-ROM preserving original path. e.g.: -r /cvs/myproj/. In this example we will find /cvs/myproj/ in CD-ROM's root -x, --exclude-path every file or directory matching this string will not be included -c, --change-path old_path will be named new_path in CD-ROM. e.g.: -c /my_home/2004_Jan/ /home/bigpaul/. Thus /home/bigpaul/ will be named /my_home/2004_Jan/ in CD-ROM. -l, --follow-symlink this option allows burn to follow symbolic link directories -m, --multisession this option allows multisession CDs ISO-CD OPTIONS -n, --name image name AUDIO-CD OPTIONS -a, --audio-file mp3, ogg or wav file/s AUTHOR
Ben Finney <ben+python@benfinney.id.au>, Gaetano Paolone <bigpaul@hacknight.org> COPYRIGHT
This is free software: you may copy, modify, and/or distribute this work under the terms of the GNU General Public License, version 2 or later as published by the Free Software Foundation. No warranty expressed or implied. See the source for details. 2009-07-22 BURN(1)
All times are GMT -4. The time now is 02:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy