Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~13.9K People Reached

13 Posted Topics

Member Avatar for script_noob

[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 …

Member Avatar for r 7vtgj
0
9K
Member Avatar for rusman

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. …

Member Avatar for thines01
0
321
Member Avatar for rusman

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 …

Member Avatar for rusman
0
138
Member Avatar for rusman

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 ".") …

Member Avatar for sknake
0
69
Member Avatar for rusman

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?

Member Avatar for Salem
0
97
Member Avatar for rusman

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 …

Member Avatar for eggi
0
4K
Member Avatar for rusman

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 …

Member Avatar for eggi
0
163
Member Avatar for rusman

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!

Member Avatar for blater
0
95
Member Avatar for rusman

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 …

Member Avatar for masijade
0
118
Member Avatar for rusman

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 …

Member Avatar for rusman
0
119
Member Avatar for rusman

How can i get awk to separate the output with dashes? A simple awk '{print $1-$2-$3}' does not work.

Member Avatar for rusman
0
109
Member Avatar for jeromefong

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.

Member Avatar for radoulov
0
166
Member Avatar for rusman

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 …

Member Avatar for jim mcnamara
0
154

The End.