10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Morning Unix Guru's,
I have written a script which output the contents of a DB. No the DB is not clever to check this or flag and there is no command for the tool to flag this, which human intervention.
But i need to check to see if there are duplicate enteries in the file output and flag... (5 Replies)
Discussion started by: Junes
2. Shell Programming and Scripting
I am trying to write a small script which takes one by one file name from a txt file and do a 'll' and need to check if equal to the given month, otherwise it should return back the file name.
Note: the file name contains parameter.
My code is given below: It is not working .. giving error... (6 Replies)
Discussion started by: Ravindra Swan
3. Shell Programming and Scripting
Preview of command prompt
f ---> to start ferret
q----> to stop ferret
Linux 2.6.18-308.8.2.el5PAE 32-bit - 08/03/12
yes? go my.jnl
---... (4 Replies)
Discussion started by: nex_asp
i am trying to patch a solaris 10 server using live upgrade.
issue is, when i create a new BE and activate it during reboot the file system that are mounted but doesnt have an entry in vfstab are automatically added in vfstab of new BE.
looks like live upgrade uses df -h output as reference... (0 Replies)
Discussion started by: chidori
5. UNIX for Dummies Questions & Answers
I have a script to remove any files that older than 14 days then move any files that younger than 7 days to another directory. but for some reason it doesn't move the files, when i do it manually it works but not through the script. i tried 2 different ways in writing the move part but it... (6 Replies)
Discussion started by: Katkota
6. UNIX for Advanced & Expert Users
I did very stupid mistake and lost all my crontab enteries on root prompt.
Please help me to solve this issue.
i did entry on root prompt like this.
but when i enter crontab -l so its only showing 1 entry defined in back.cron
and all... (2 Replies)
Discussion started by: wakhan
7. Shell Programming and Scripting
I'm writing a shell script to extract some fields out of a log file & it will run periodically, how can i make it runs starting from where it left of. for example;
if the script will do the extract every 2 days, let's say the first run will extract fields until July 25, 2007 @ 11:15:22... (1 Reply)
Discussion started by: moe2266
8. Shell Programming and Scripting
I'm trying to get the number of lines in a file. I know their are a number of ways of doing this like wc -l or nl which lists the file with the line number. The problem is that I want to use the number of lines a certain program has as a variable in my script. So i can't use wc -l as it returns the... (2 Replies)
Discussion started by: Quesa
9. Shell Programming and Scripting
I'm new to shell scripting and am having a problem trying to do something in C shell. I want to write a script that will input something instead of a user doing it. For example, using the command 'write' the user is supposed to type something to be sent to another user. I want a script to be able... (3 Replies)
Discussion started by: batmike
10. UNIX for Dummies Questions & Answers
I am writing a script that will identify the oldest file in a directory. Here's the syntax:
chmod 777 *
ls -r -1t > file1
sed -n -e "1P" < file1 > file2
So my problem is, now I have file2, which contains the name of the oldest file in the directory. How do I use,... (1 Reply)
Discussion started by: kristy