10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here is my requirement. I am grepping through the log files and cutting some fields from the file to generate a csv file. Now I have to check if 2nd field is having some fixed value then with the help of 4th field I have to look in same log and run another grep command to retrieve the... (11 Replies)
Discussion started by: kmajumder
2. Shell Programming and Scripting
First off, this is not homework nor for any class.
I have a file (column) of data such as:
(call the file "num") I want to read in each line, then check to see whether it's greater than or equal to a value, say "1". If it is, save it in one file, if it's... (8 Replies)
Discussion started by: astropi
3. Shell Programming and Scripting
please any one can provide me the shell script to write data to /dev/ttyS1
and read responce from /dev/ttyS1 and compare the responce to some string ..
---------- Post updated at 03:35 PM ---------- Previous update was at 11:46 AM ----------
any body help me..
how do i... (1 Reply)
Discussion started by: yashwantkumar
4. Shell Programming and Scripting
Please help me in writing data to a file in one row.
In database there is a column which contains large data which does not fit in the file in one row. The column contains list of paths. I want to write these paths to a file in one row.
Please find the code below writes :
... (2 Replies)
Discussion started by: rajeshorpu
I'm trying to code a program which makes the following:
It sends an ARP request frame and when it gets the reply, extracts the IP address of source and writes it to a .txt file. This is gonna be done with many hosts (with a for() loop), so, the text file would look like... (2 Replies)
Discussion started by: Zykl0n-B
6. UNIX for Dummies Questions & Answers
I have the following shell script code which tries to sftp and writes the log into the log file.
echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME
if ]; then rm $SCRIPT ; fi
echo "cd" $REMOTEDIR >> $SCRIPT
echo "quit" >>... (10 Replies)
Discussion started by: valluvan
7. UNIX for Dummies Questions & Answers
Hi my prob statement is to create a new file or to append to the 1tst file the followign chages.
File 1: txt file.
portfolio No a b c d
abc 1 Any Any Any charString
cds 2 values values values charString
efd 3 can can can charString
fdg 4 come come come charString... (4 Replies)
Discussion started by: szchmaltz
8. UNIX and Linux Applications
I want to read and write into Excel files.
I want my script to generate the required output directly in the Excel format.
Is it possible through unix scripting or shall I have to use some other language for this purpose?
Waiting for your suggestion.
Thanks in Advance.
... (3 Replies)
Discussion started by: AshishK
I am not a C programmer but I need to read and write files on a computer on LAN using IP address.
Suppose on a computer that has an IP 192.168.0.2
Any help or code example. I did in JAVA using URL, but do not know how to do in ANSI-C.
URL url = new... (3 Replies)
Discussion started by: lucky001
10. UNIX for Dummies Questions & Answers
Our group is just starting to get into UNIX here. We are former REXX users on a VM Mainframe. Can someone point me to the documentation to read a file and write a file in a Unix Shell Script or does this have to be done in another language?
Thank you in advance...
Dave (3 Replies)
Discussion started by: tracydp