10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Greetings!
Been a while since I futzed around with Perl, and came upon a minor headscratcher for the community ;)
Here's the basic code which I'm trying to make tick over:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
print " starting ";
while (-e "~/.somedir/testFile")... (9 Replies)
Discussion started by: LinQ
9 Replies
2. Shell Programming and Scripting
Hello team,
We wish to develop a script as follows :
1. Rename multiple files in the following way:
example
Original file names : test.txt and dummy.txt
New file names : test.$(date +"%F").AAAAA<serialno_1>.BBBBBB.p and dummy.$(date +"%F").AAAAA<serialno_2>.BBBBBB.p
2. The... (3 Replies)
Discussion started by: H squared
3 Replies
3. Shell Programming and Scripting
Dear Help,
I have an input file which looks like below
002 1000 2000 3000
003 2000 3000 4000
005 1000 2000 6000
I would like to have an output which inserts the missing number in sequential sorting as shown below...
001 0 0 0
002 1000 2000 3000
003 2000 3000 4000
004 0 0 0
005 1000... (5 Replies)
Discussion started by: Indra2011
5 Replies
4. Shell Programming and Scripting
Hello, I am a very novice user of awk, I have a set of files named file001, file002, file003, file004, etc., each contains four fields (columns of data) separated each by a uneven number of spaces. I want to substitute those spaces by a TAB, so I am using this line of awk script:
awk -v OFS="\t"... (4 Replies)
Discussion started by: jaldo0805
4 Replies
5. Shell Programming and Scripting
I would really appreciate any assistance that I can get here.
I am fairly new to perl. I am trying to rewrite my shell scripts to perl.
Currently I have a shell script (using sed, awk, grep, etc) that gets a list of all of the zone files in a directory and then looks in named.conf for what... (0 Replies)
Discussion started by: brianjb
0 Replies
6. Red Hat
hello everyone,
I have install centos 5 recently.The file /etc/named.conf not found. I have installed BIND using yum. so now what to do ?? should i create named.conf file manually ???
please help me.
thanks,
sharlin. :) (1 Reply)
Discussion started by: sharlin
1 Replies
7. Shell Programming and Scripting
I have got an Perl array like:
@array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............)
This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence.
SO in this array we get sequentially... (5 Replies)
Discussion started by: teknokid1
5 Replies
8. Shell Programming and Scripting
I have a list containing strings. All strings should have either "smp" or "drw" else it is considered an error. I have written this code below. Any better ideas to tackle this?
set fdrw = 0
set fsmp = 0
foreach f ($Lst)
set fdrwtag = `echo $f | awk '/drw/'`
set fsmptag = `echo $f | awk... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
I have an application consisting of a number of perl files. I want to find those perl files that have no documentation yet, so I tried the following from the root level of the directory where the application resides:
perldoc -r *
The output is something like the following:
No documentation found... (2 Replies)
Discussion started by: figaro
2 Replies
10. UNIX for Advanced & Expert Users
Hi Gurus,
i have to transfer files one by one from ftp server to target server
all files which is to be transferred lies in one ftp folder
i have to move those files sequentially from ftp to target and must verify files for successful transmission .
then i have to delete corresponding... (1 Reply)
Discussion started by: harim
1 Replies