Build a table from a list by comparing existing table entries
I am new to this shell scripting.... I have a file which contains list of users. This files get updated when new user comes into the system. I want to create script which will give a table containing...
View ArticleHow to sum multiple column output with awk ?
Hi Experts, I am trying to sum multiple columns and rows with awk , I want the sum of : 1] Horizontal Sum: (rows sum): 2] Vertical Sum: (Column's sum] details: Code: # cat file1 10 11 12 13 14 15 16 17...
View ArticleZip with Password
Hi, In my shell script I am using the zip command to zip the log files. The zip file is password protected. But there is a dicey. I want the output as: 1) All files should be zipped including...
View ArticleConversion of line via awk or etc
Hello friends, could you help me about problem with my data lines. I suppose a simple awk code may help me. I have following data lines: (first line including 3 numbers and then a matrices of 4x10)...
View ArticleMoving files based on file creation
Hi, I have a directory having so many number of files. Now I want to move the files which are older than one month (lets say) from this directory to another directory (say BKP dir). Simply, if file is...
View ArticleHelp with multithreading
I take this question of the The Linux Programming Interface: Code: A Linux and Unix System Programming page 652 exercise 30.1 I want someone to explain the under line statement because it sounds...
View ArticleAlias has no effect in script
It doesn't have effect in script but it works on the terminal Code: root@server:/opt/kvm/usecases/logs# alias echo='echo -e' root@server:/opt/kvm/usecases/logs# echo "xxxx\n" xxxx...
View ArticleHelp with ksh script to list files, cp it to another UNIX server
Hi, I'm quite new to ksh scripting, can someone help me with this. Requirements: I need to create a script that list the files from a user input date range. e. g. format of file:...
View ArticleMigrate from FTP to SFTP
Hi,I am using following code for FTP in shell script file and it is working.Now I want to migrate from FTP to SFTP.What code changes/steps I have to perform for SFTP ? ftp -in <<FIN open...
View ArticleHelp with ksh script to list, then cp files from a user input date range
Hi, I'm quite new to ksh scripting, can someone help me with this. Requirements: I need to create a script that list the files from a user input date range. e. g. format of file:...
View ArticleWhat's wrong with my assignment
Code: lyang0@lyang0-OptiPlex-755:~$ tr 'A-Z' 'a-z' <<< `printf 'DE:EF:BE:%02X:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256))` de:ef:be:20:a2:e8 lyang0@lyang0-OptiPlex-755:~$...
View ArticleGrab exactly one byte from a FIFO, at random intervals
I want to develop a script of the following form: Code: #!/bin/bash # Function 'listen' opens a data stream # which stores all incoming bytes in # a buffer, preparing them to be # grabbed by a...
View ArticleRandom Crashing
Over the last month or so my CentOS server has been crashing for reasons I do not know. It has been running for over a year with regular yum updates without problems. The load on the server is...
View ArticleXWindow Tool
Hi Guys can any one help me in this regard .. I'm using Reflaction and xManager but I want list of another xWindow tools between Unix and Windows .. Pls advice ..
View ArticleUsing Squid in Windows XP Getting Error can't open website
I have installed Squid squid-2.7.STABLE8-bin in Windows XP in Vmware Workstation .. i have installed it in C Drive And followed the steps mentioned below now squid is running .. the changes i have made...
View ArticleRedhat cluster
HI, Can you guys help me to install redhat cluster on VMware Workstation. How to download cluster suite and how to configure on Workstation.
View ArticleStrange File Permission....>
Hi guys, OS: Mac OS X 10.8.2 Im trying to delete a directory (which is empty) using the rm -rf command but it returns the following error and doesnt delete the directory: sudo rm -rf Kodak/ returns:...
View ArticleXML: parsing of the Google contacts XML file
I am trying to parse the XML Google contact file using tools like xmllint and I even dived into the XSL Style Sheets using xsltproc but I get nowhere. I can not supply any sample file as it contains...
View ArticleExplanation needed..
grep -E '^([^|]+[|]+){5}5000' <file_name> this command searches value 5000 in only 6th column from provided file where pipe ( | )is delimiter which separate columns... can some one plz explain me...
View ArticleDelimiter Conversion(Generic Code)
Hi All, I am looking for a generic code which can search for the existing delimiter(what ever it may be) in a file and convert it to Pipeline. The file may have Pipeline delimiter already in that case...
View Article