Search Pattern and Print lines in Single Column
Hi Experts I have small query where I request the into a single file Suppose: File1: {Unique entries} Code: AA BB CC DD FileB: Code: AA, 123 AA, 234 AA, 2345 CC, 123 CC, 5678 DD,123 BB, 7890 Output...
View Article[BASH] Floating point exception
Heyas I have a script (vhs - video handler script, using ffmpeg) to encode videos. It also encodes a dvd, but until now just non-copy-protected ones, so i've tried to add/implement a vobcopy wrapper to...
View ArticleSolaris 10 - 'ls' green for root user only
Welcome to all. Have an issue and looking for help so hope someone is able to give me some clues. I prepared some shell scripts with coloured output to help other guys to have more automated task. Not...
View Articleksh script to check if certain process is running
I have to kill the process "test" for a maintenance I do but want the script to check when it comes back up. I can get what I want when I run this while loop: while true;do ps -ef | grep test | grep -v...
View ArticleHow to reallocate the deleted logfile space?
Hi All, I know this is a simple question but i am not sure the exact answer it. Here is the question: There is a huge log file , if we delete the log file ,how the corresponding occupied file memory...
View ArticleSpecific row match
Trying to match $1 of genematch.txt with $11 of design.txt, if there is a match then in the first row of the match $1 is copied to column 1, row 2 of design.txt, $2 is copied to column 2, row 2 of...
View ArticleMultipath address configuration in Solaris 10.
Hi all, I'm wondering if anyone knows whether Solaris IPMP can be configured such that the IPs of the physical NICs are not available to applications when using IP4 or if the group address and the...
View ArticlePlease identify "unexpected end of file" bug
This is a script I got off the web for transferring Safari's "reading list" to the Pocket app. I ran it in terminal with the command bash exportsafarireadinglist.sh and got syntax error: unexpected end...
View ArticleHow to set a non-login non-interactive shell for a user?
I am sorry for creating a new topic after my previous inquiry was closed, but I tried and tried and I do not know how to edit my previous post. This is not exactly any homework, this is one of 40...
View ArticleRenaming a file that starts with "-"
Hi I am downloading some files from the Internet. They are from different sources and they are all called Code: -.txt that is: a dash "-" followed by a dot "." and then the file extension. So i wrote a...
View ArticleExecute command on remote host via ssh
How should i make the following code working Code: #!/bin/bash INPUTFILE="test.txt" while read STRING; do IP=`host -t A $STRING | awk '{print $NF}'` HOSTNAME=`ssh -oPasswordAuthentication=no...
View ArticleFind Files within date Range
Hi i am looking to expand a command i am using to find files in a large file system. i am currently using find /raid/JOBFLOW_LOCKED/ -type f -size +3G | -exec mv {} /raid/JOBFLOW_LOCKED/KILL \; This...
View ArticleLocal variable in functions (gawk)
Hi Everybody :) I need your help, because i know a local variable in a function for example k, it is different of other variable(with the same name k) this a global variable. Is that right? Code:...
View ArticleInsert an image in HTML mail sent from Shell script
Hi Shell Experts I am trying to insert an image into HTML email through shell script send mail, I have the email text file which included body and the images included in it in html format. Through my...
View ArticleLookup subfields from 3 tables and insert
Hello masters, Please help on the following. I have a tab delimited file with subfields space delimited. Code: 1 a b x y hhghd ghgf 2 v t f g gdgdgdg hghg I...
View ArticleIpython notebook and python virtualenv, permission
Hello, I was playing with ipython-notebook and python virtualenv. I met a "permission denied Error" when I tried to run ipython notebook. Code: ~/test $ ipython Traceback (most recent call last):...
View ArticleUnable to login with any user
Hi Please I need help on trying to login on a Code: solaris 10 , blade server. Code: login as: root Using keyboard-interactive authentication. Password: I even try a normal user, I do not get the...
View ArticleSorting a text file with respect to Function/Keyword
Hello Experts, I am truly a beginner in shell and perl . Need an urgent help with sorting a file. please help. wouldn't mind whether in perl or shell script. Here are the details. Code:...
View ArticleNeed help with sendmail email filtering on FreeBSD
Hi All, Sorry, for the double posting. Don't know how to move to a different forum. I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9. I need to filter incoming...
View ArticleCommand to know all the Current running process and how to kill
All, 1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process) 2.If child and subchild processes are running then...
View Article