Special characters automatically gets returned - Red Hat Enterprise Linux...
Dear experts, We are using Linux OS i.e Red Hat Enterprise Linux Server release 7.0 I log to the server using putty & default shell is Code: -bash4.2$ echo $SHELL /bin/bash special character...
View ArticleTranspose Messy Data
I have a messy, pipe-delimited ("|") input dataset. I would like to create a file of ID plus each component of field 4 which is delimited by ";" into a long, skinny shape for easier processing. A...
View ArticleNew files based off match or no match
Trying to match $2 in original_targets with $2 of new_targets . If the two numbers match exactly then a match.txt file is outputted using the information in the new_targets in the beginning 4 fields...
View ArticleHow could I enable logging of bind 9 forwarders messages?
How could I enable logging of bind 9 forwarders messages? I have the following but forwarded requests do not show up in the logs even when running named in debug 10 mode: Code: logging {...
View ArticleAdd port 1821 - /etc/services
Hello Team, We have Solaris 10 u11 and I add the following line in /etc/services Code: tcp_god 1821/tcp When I tried to probe the connection from other Solaris server using the telnet command I...
View ArticleQuestion on storing a variable from a rename action.
I have a simple if statement I am working with to validate if a file exist and rename it using the following method: Code: if [ -a ".htaccess" ];then mv .htaccess .htaccess.bak_$(date +%F-%T);fi; The...
View ArticlePrefix/Suffix on same file
Hi, I want to add prefix and suffix on line# 205 using SED or AWK and want to change on the same file without creating new file. This command will be used in the bash script Am using Bash shell Regards...
View ArticleScript doesn't print error.
Hi Gurus, I have below sample script. I expect it print error when running script without input parameter. but the it doesn't. would you please help me about this issue. thanks in advance. Code:...
View ArticleHelp with passing parameters from a file
Hello Everyone, I have developed a shell script which takes schema id and password as parameter to login into database using sqlplus,runs a query and mails the result. My requirement is that, I dont...
View ArticleDifferent approach to storing passwords in scripts
I would like to get feedback on documentation and source code that I have put together at www(dot)novabitz(dot)com, which deals with the ongoing problem of how to protect passwords embedded into...
View ArticleMath
i have file (my_file.txt) that looks like this: Code: 000000000000010000 000000000000010000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 000000000000005000...
View ArticleBash loop to search file
In the bash when the user inputs an id to search for the bash currently closes, and if a match is found outputs a new file (match.txt). Is it possible to have not close the bash but rather, on the...
View ArticleView IP of HMC from AIX
Trying to get the IP address of the HMC connected to some servers running AIX 6 and 7. I thought this would be as easy as running 'lsrsrc IBM.MCP IPAddresses', but when I run that command, the resource...
View ArticleHow to compare the current result with previous line result.?
Hi Gurus, I have requirement to compare current result with previous reuslt. The sample case is below. Code: 1 job1 1 1 job2 2 1 job3 3 2 job_a1 1 2 job_a2 2 2 job_a3 3 3 job_b1 1 3...
View ArticleCurl error
Hello I want to use the Curl and gives me this error. Can someone help me out Code: # curl http : // www .google . es...
View ArticleGrep exact match
Hello! I have 2 files named tacs.tmp and tacDB.txt tacs.tmp looks like this Code: 0 10235647 102700 106800 107200 1105700 tacDB.txt looks like this Code: 100100,Mitsubishi,G410,Handheld,,0,0,0...
View ArticleAssigning a variable
I have a date column as 06302015 but I need to have variable which extracts 063015. Am trying something like below but it is not assigning Please let me know if am missing something. Thanks in advance....
View ArticleMultiple DNS forwarders and syntax question.
Hey Guy's, Is there a limit on the number of forwards that can be used or the syntax and spaces? I noticed I have to put spaces between ; and the IP for at least the first one, then space at the end to...
View ArticleHow to rename multiple file names?
Hi all, I need to rename more file name in one command or script. The files have this structure: XxY - filename.doc where X and Y are numbers and the x is the letter itself. I need to rename these...
View ArticleSubstitution to remove tailing slash?
Heyas I am trying to remove a tailing space, with substitution. Already tried some multiple escapes with no luck, is that even possible? Code: echo $CHROOT [ -z "$CHROOT" ] || \...
View Article