10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi
when i am trying to check the file size using du command in shell script but getting a below error, although the file is present
du: cannot access `LOGS_18-08-20.tar.gz': No such file or directory
below is snippet of script
cd /home
dt=$(date --date="yesterday" +"%y-%m-%d")
du ... (3 Replies)
Discussion started by: scriptor
3 Replies
2. Shell Programming and Scripting
Hi
I have jobs (some 1000) defined in a file and I want to read those jobs and run a a command.
For example:
jobs.txt
abc
efg
I want to read the entire file and run the following command
Delete -JOB "abc"
Deleteing abc...
Delete -JOB "efg"
Delete efg...
Can somebody help me... (4 Replies)
Discussion started by: karan8810
4 Replies
3. Shell Programming and Scripting
Hi,
I am facing issues with the below:
I have a lookup file say lookup.lkp.This lookup.lkp file contains strings delimited by comma(,).
Now i want to read this command from file and execute it.
So my code below is :
Contents in the lookup.lkp file is :
c_e,m,a,`cd $BOX | ls cef_*|tail... (7 Replies)
Discussion started by: vital_parsley
7 Replies
4. Solaris
Hi Folks,
I am again here with a peculier problem.
Please see the code
root@celdws01: # sar -u -f /var/adm/sa/sa21
SunOS celdws01 5.9 Generic_118558-34 sun4u 12/21/2011
10:10:09 %usr %sys %wio %idle
10:10:09 unix restarts
Can anyone help me in... (9 Replies)
Discussion started by: vivek.goel.piet
9 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I recently downloaded the Linux kernel source code, added them all to a project in MS VC++ and plan to read through it so that I can improve the way I code, read/understand a large code database and hopefully contribute something to the development of the Linux OS.
I have taken a... (3 Replies)
Discussion started by: clavian
3 Replies
6. Shell Programming and Scripting
Hello. I have the following issue: my txt file has the following format:
train/dr4/fklc0/sx175.txt 0 80282 Severe myopia contributed to Ron's inferiority complex. train/dr4/fklc0/sx355.txt 0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt
With the... (1 Reply)
Discussion started by: li_bi
1 Replies
7. UNIX for Dummies Questions & Answers
Hello. I have the following issue: my txt file has the following format:
train/dr4/fklc0/sx175.txt
0 80282 Severe myopia contributed to Ron's inferiority complex.
train/dr4/fklc0/sx355.txt
0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt
awk 'NR%2==0' test1.txt >... (4 Replies)
Discussion started by: li_bi
4 Replies
8. Shell Programming and Scripting
I need a command which filters rows ONLY NOT beginning with '*'
So far I have following NOT sufficient command, because it does not include ALL possible literals except of '*'
grep ^ INPUT_FILE >>OUTPUT_FILE
Is it possible to write something like
grep NOT ^
INPUT_FILE... (3 Replies)
Discussion started by: ABE2202
3 Replies
9. Shell Programming and Scripting
hi all,
there is any command or anything we can use to read the file name and size. thanks (6 Replies)
Discussion started by: s_linux
6 Replies
10. Shell Programming and Scripting
Hi,
In a shell script I am makin use of 3 files f1,f2 and f3.txt.
When the Unix server is restarted I want to delete all these 3
files if they are existing.
( I suppose I will have to use this command
rm /thefilepath/f*
but dont know in which script to use.)
Anyone knows what can be... (6 Replies)
Discussion started by: k_oops9
6 Replies