10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello ..
I am new to perl scripting, I have a text file, and would like to insert 3 new lines into the same file at different line numbers using perl scripting. Any Help regarding this will be very useful.
say the file is sample.txt, contents are
aaaaa
bbbb
ccccc
dddd
eeeee
ffffffff... (4 Replies)
Discussion started by: hemalathak10
4 Replies
2. UNIX for Dummies Questions & Answers
Evening all !
I would like to ask your expertise on how to accomplish the following ;
I have 2 lists, and would like each line from list2 to be appended to each line in list1, resulting in list3 ;
List1;
alpha
beta
charlie
List2;
one
two
three (4 Replies)
Discussion started by: TAPE
4 Replies
3. UNIX for Advanced & Expert Users
Hi..
I have a folder within which I have two files :
abc.gz and xyz.tar.gz
Actualy abc was a 8 GB File and while zipping other files in xyz.tar.gz it could not be zipped due to its large size..
I have zipped abc using -E option of tar.
Can someone help to put abc.gz in xyz.tar.gz..... (1 Reply)
Discussion started by: kanus
1 Replies
4. Infrastructure Monitoring
Hi all,
I have a snmpd.conf file as below. in "SECTION: Trap Destinations" line I want to add "trap2dest <IP>:162 <com_str>" on a new line. For this I wrote following code
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp;
ssize_t read_char_count = 0;
... (2 Replies)
Discussion started by: zing_foru
2 Replies
5. Shell Programming and Scripting
I have a source file like this,
L4058S462 34329094 F51010141TK1070000483L4058S462 34329094 0232384840 381892 182 5690
L4058S462 34329094 F51020141FIRST CLEARING, LLC A/C 3432-9094
L4058S462 34329094 F51030141JOHAN HOLMQVIST ... (1 Reply)
Discussion started by: saravanamr
1 Replies
6. Solaris
Pre: no gpasswd/adduser
there is just usermod can be used, also there is no -a option for usermod.
How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies
7. Shell Programming and Scripting
Hi guys,
Please help me if u have some solution.
I have a file with three columns separated by ':' -
INPUT_FILE
C416722_2 : calin Dirigent : Dirigent
AC4174_6 : Jac : cal_co
TC4260_5 : [no : lin kite
BC426302_1 : [no : calin Dirigent lin
JC426540_3 : lin Pymo_bin : calin
TC428_3 : no7... (4 Replies)
Discussion started by: sam_2921
4 Replies
8. Shell Programming and Scripting
For example,
/tmp/folder1
includes /tmp/folder1/a /tmp/folder1/b
/tmp/folder2
includes /tmp/c
Is there a command without removing files in /tmp/folder2 first to copy the /tmp/folder1 to /tmp/folder2?
and the result should be
/tmp/folder2 will include only /tmp/folder2/a... (2 Replies)
Discussion started by: lalelle
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Plz suggest me how can i change the date of a file.
Suppose my file has been created in some date and i want to give it present date.
How can i do this???? (2 Replies)
Discussion started by: adityam
2 Replies
10. Shell Programming and Scripting
How to write this condition in ksh?
if myfile is empty or myfile does not exist
then
do action1
fi
is this OK?
if ] -o ] then
then
do action1
fi
Thanks. (3 Replies)
Discussion started by: GNMIKE
3 Replies