09-24-2014
Thanks!!
Thanks a lot Cero and gandolf989. It helps!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I need help to create a shell script that does following:
- do ls -1 and let all file names in the current folder
- do wc for each file and if wc > 0 then send a mail.
I am new to unix and do not know how to get filename one by one in a loop, so that wc can be done. I have done rest... (5 Replies)
Discussion started by: adadevil
5 Replies
2. Shell Programming and Scripting
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Discussion started by: lathish
2 Replies
3. UNIX for Dummies Questions & Answers
I'm sure this can't be too tough, but.
I want to check the existance of file(s) by extension. There may be 0,1,N files. If any files exist, then remove them.
Thanks for any insight. (3 Replies)
Discussion started by: niswonp
3 Replies
4. Shell Programming and Scripting
Hi all,
I have the following code:
if ; then echo 'folder not exist'; else echo 'folder exist'; fi
The "testing" folder is not exist in /home/batch , but thhe result is 'folder exist'. It seems that the code cannot detect that the folder "testing" not exist.
ANybody know the... (1 Reply)
Discussion started by: suigion
1 Replies
5. Shell Programming and Scripting
I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result.
if
then
<do some work>
else
<no files>
fi
Since there are more than one... (18 Replies)
Discussion started by: vivek_damodaran
18 Replies
6. Shell Programming and Scripting
Kindly help on below script:
<<
i='find ...'
if then
echo 'File Exists'
else
echo 'File Does Not Exist'
>>
If i has some file name then it runs properly but if i has nothing ( blank value) then it throws an error. I dont exactly remember right now but error seems like:... (2 Replies)
Discussion started by: ravigupta2u
2 Replies
7. Shell Programming and Scripting
Hi Team,
I'm new to Unix shell scripting .
I've the following requirement
A folder contains the list of files with the following format
ab.name.11.first
ab.name.12.second
ab.name.13.third
----------
I have to rename the above file to like below
... (6 Replies)
Discussion started by: smile689
6 Replies
8. Shell Programming and Scripting
Hi,
I have 9 files which are generated dynamically & if there is a some condition which doesn't meet the criteria then file is not created or is of zero size.
so further i am unable to consolidate the files based on following code 1
awk -F, -v ptime="201407" 'FNR==1... (3 Replies)
Discussion started by: siramitsharma
3 Replies
9. Shell Programming and Scripting
I have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
Discussion started by: vipertech
16 Replies
10. Shell Programming and Scripting
Hi All,
Seeking for your assistance to compare if the file in working directory is found on the DIR2 directory and if not found move the file in DIR2.
ex. WORKING_DIR=/home/dir1/
file1.txt
DIR2=/home/admin/users
file1.txt
what i did was
found_nonempty=''
for file in... (4 Replies)
Discussion started by: znesotomayor
4 Replies
LEARN ABOUT SUSE
artswrapper
artswrapper(7) Arts artswrapper(7)
NAME
artswrapper - used to set real-time priority to artsd, the KDE sound system
SYNOPSIS
artswrapper [OPTION]
DESCRIPTION
artswrapper gives artsd the capability of running with real-time scheduling priority. This helps prevent audio skips and jumps.
Except for the check option, artswrapper passes all other arguments directly to artsd. Artswrapper calls the arguments after setting the
real-time priority and dropping privileges (if running as setuid root).
The real-time status is passed to artsd via the environment variable STARTED_THROUGH_ARTSWRAPPER, and can be one of the following values:
unset (not running as real-time), 1 (running as real-time), 2 (no privileges to set real-time scheduling), or 3 (no support for real-time
scheduling).
OPTIONS
check backward compatibility with old artswrapper. This only prints "okay" and exits.
SECURITY
artswrapper must be used as setuid root to have privileges to set real-time scheduling.
BUGS
Sometimes artsd locks the system on exit in 2.4 kernels. If this happens, use aKode library, which improves the CPU usage, helps maintain
uninterrupted sound, and remove the setuid bit from artswrapper (thanks to Debian documentation and Christopher Martin).
SEE ALSO
artsd, artsdsp
AUTHOR
Manpage written by Rodrigo Rubira Branco <rrbranco@br.ibm.com>
KDE Multimedia Jun 01, 2006 artswrapper(7)