9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have to write a script to compare the sum of the amount fields in a source file and the amount field in another file.
details are:
based on the name of the source file (say SALES as an example), a file already available in a path will be grabbed (say SALES_ParmFile) and this file... (4 Replies)
Discussion started by: vijaylak
4 Replies
2. Shell Programming and Scripting
Hi all,
I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example:
... (2 Replies)
Discussion started by: cul8er
2 Replies
3. Programming
I need to
"Ensure that when you download libchat.a from the VLE you have copied it to the same folder on ius as your source files. You then refer to the library (and the libraries it needs) with:
gcc -o outputfile sourcefile.c -L. -lchat -lsocket -lnsl"
But I have no idea what this means! (I... (2 Replies)
Discussion started by: fakuse
2 Replies
4. Shell Programming and Scripting
Hi,
I need a script to do the following:
1. Telnet into a remote power controller for the switch (done)
2. Find the power controller version. In order to do that my script should run grep and the keyword to search is "network" (need help)
3. Do a bunch of other stuff.
Now, once... (4 Replies)
Discussion started by: puneet1984
4 Replies
5. Shell Programming and Scripting
hi all,
Please help me with rsync.
I configured rsync to preserve timestamps using the -a option.
When i renamed fileA to fileB on source machine I have to copies at the backup server.
The aim is to keep the most recent file.
fileA & fileB has same contents.
When i renamed fileB to... (2 Replies)
Discussion started by: coolatt
2 Replies
6. UNIX for Advanced & Expert Users
I often find myself grepping source code for a variable name and many times the name would be present in comment lines that I 'd prefer not to see. Do you guys know any tricks to filter out comments?
Example:
snippet of the source code
/***
* type comment 1
***/
void ... (7 Replies)
Discussion started by: migurus
7 Replies
7. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
8. UNIX for Advanced & Expert Users
hi folks...
lets suppose i do
ps -ef | grep telnet <ip add>
then...
whats the way to find find out from which file this process
i.e. telnet <ip add> is called. (1 Reply)
Discussion started by: icecool79us
1 Replies
9. Shell Programming and Scripting
Hi there Everyone,
I need some help/information/advise for the following questions:
I'm writing the following script:
#Beginning of the script
ftp -n <source server> > ${log_dir}/test_get.log << END
user <user_name>@<IP Address> <passwd>
verbose
bin
!echo "'List Files Before Getting... (3 Replies)
Discussion started by: lweegp
3 Replies