No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
[QUOTE=alc6379][code]for i in `cat input.txt`; do rm -f $i done[/code] ...Something like that should do it. Basically, it should count each line as an item, and the $i variable is going to be the name of the file on that line. I added the -f command because I don't want …
I have written a very simple bash script that runs on Solaris10. It runs a command and then sends me the output via mailx. I can run it at the command line (sudoed as root) and it runs perfectly fine. I then set it up to run from root's cron. …
I have written a very simple bash script that runs on Solaris10. It runs a command and then sends me the output via mailx. I can run it at the command line (sudoed as root) and it runs perfectly fine. I then set it up to run from cron. I …
What mkisofs options would you use to ensure the ISO loads and can run on Solaris 8/9/10 when the ISO is made from a Solaris 10 system? There are some pretty deep directories, but I don't know how deep. I also suspect there are some hidden files (start with ".") …
I want to ls -l a filesystem, but only want the files 3 months old or more. I can't figure out how to test the files and get the results I'm looking for. Any ideas?
I need to read in a list from a file, but I want to always ignore/skip the first line of this file. Right now I'm just cat'ing the file and awk'ing the first column as that's all I need. However, this will also give me the first column of the …
I'd like to create a script that will run a command, parse the output for certain fields/words and then email that information to me if it meets simple criteria. For example, when run, the command will output several lines. I'll need to grab the Name: Test1 Type: Windows Active: No …
What command will let me run a script/command on a remote machine? Anything I need to have in place to get this remote execution to work? Thanks!
Hello, I have a script I've used on pre-Solaris 10 that works just great. Now on a Sol10 box, it is bailing on this line with this error: syntax error at line 27: `|' unexpected Here's the 'offending' line: [code]creation=`echo $backupid | sed 's/^.*_//'`[/code] I'm a bit confused as to …
Hi all, I have two files, both have a list of 6 digit values. I want to compare them and output the values that match up. The lines in each file are not supposed to contain the same value (in other words, line 1 in each file may or may …
How can i get awk to separate the output with dashes? A simple awk '{print $1-$2-$3}' does not work.
In my very limited scripting experience, read will ignore spaces. You might be able to change that but I don't know how. I have a read question, too, in another thread I just posted.
Hello everyone, Given a list of output that looks like this (from NetBackup bpimagelist if any of you are familiar), I need to pick out the last full backup closest to the end of the quarter (3/30, 6/30, 9/30 12/31). 10/20/2006 21:24 INFINITY 146144 64213523 N Full Backup 10/13/2006 21:46 …
The End.
rusman