10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a file which looks like
ant1 1,2,3,4 bat1
ant1 5,6,7,8 bat2
I would like to have an O/p as
ant1 1 bat1
ant1 2 bat1
ant1 3 bat1
ant1 4 bat1
ant1 5 bat2
ant1 6 bat2
ant1 7 bat2
ant1 8 bat2
Is it possible.
Thanks for any suggestion (9 Replies)
Discussion started by: Indra2011
9 Replies
2. Shell Programming and Scripting
Hello,
I need some help from unix guru's here..I am looking for some advanced level script to cleanup the directories and files from specific directories under a file system..
The folders are created under /opt/modules
And under modules, there are multiple subfolders with the application... (6 Replies)
Discussion started by: mb525
6 Replies
3. Shell Programming and Scripting
Using the korn shell in ubuntu or fedora, I need to compare two forms, each from different files and do the following, form-1 is the dominant form and must be compared to form-2, if the value in field1 of form-1 matches exactly the pre-filled in value in field1 of form2 then I display 'already... (2 Replies)
Discussion started by: smth333
2 Replies
4. Shell Programming and Scripting
I am trying to get output for fcs0 fcs1 side by side with "Date" "FCAdapter_Name" "Last Reset" "DMA_Res" "Adapter_Count" "Command_Res" for all the captured output in fcstat.out
Am I missing any thing below, as its just showing same values all the coloums:
#!/usr/bin/ksh
head -30 fcstat.out... (2 Replies)
Discussion started by: aix_admin_007
2 Replies
5. Shell Programming and Scripting
Hi guys!
I have a directory in the production environment from which i have to delete files older then 40 minutes with .pid extention. I wrote a script below for the purpose.
#!/bin/bash
#
# Script to delete specific file older than N minutes.
# OLDERTHAN="40" #40 minutes
... (6 Replies)
Discussion started by: sajid.shah
6 Replies
6. UNIX for Advanced & Expert Users
I needed some help with a script to fetch and delete all records prior to 3 days from now connecting to sybase from sunos. I wrote the following script but not working..can someone please guide me with my code.
Thanks
#!/bin/ksh
##GET PREVIOUS DAY DATE
dt=`date | awk... (3 Replies)
Discussion started by: moe458
3 Replies
7. Shell Programming and Scripting
Hello, beginner bash scripter here.. I was able to write a script and it works just fine. I'm just wondering if someone could chime in or any suggestions to make it cleaner or tighter so to speak. I have a disk to disk backup solution which uses 250GB disks. When one gets full I just po in a new... (7 Replies)
Discussion started by: woodson2
7 Replies
8. Shell Programming and Scripting
Hi!
I would like to write a script which remove some files, all beginning with the same prefix :
prefix.1
doc/prefix.2
../prefix.3
etc.
So, I would create a file and chmod it executable. But I dont know how to pass a variable to a script. I would like to write something like
... (2 Replies)
Discussion started by: tipi
2 Replies
9. Shell Programming and Scripting
Hi Guys, I've got an system setup to act as an sftp server. I have a script that allows me to create chroot users running a custom shell within their home directory, it also creates a subdirectory that they can write into. I'm trying to write a script (that I can cron at a later date) that checks... (3 Replies)
Discussion started by: King_Brucie
3 Replies
10. Shell Programming and Scripting
Many of my servers' /etc/group file have many userid's that does not exist in /etc/passwd file and they need to be deleted.
This happened due to manual manipulation of /etc/passwd files.
I need to do this for 40 servers.
Can anyone help me in achieving this? Even reducing a step or two will be... (6 Replies)
Discussion started by: pdtak
6 Replies