Phrase txt file row to column
Hi Guys, I have one Big txt file and i what to phrase specific part as below. Input :- Code: [2015-02-11 16:15:03.872] Event Event { recordLength 160118, recordType 411, eventId 3102118,...
View ArticleTrouble creating a disk partition slice (EFI)
Hi all, I am using SPARC Solaris 11.1 with EFI labelled disks. I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs. EFI labels use sectors and...
View ArticleHow to execute application commands with shell script?
Hi Friends, We have a application "getstatus" which needs to run on application prompt. But it is not working with shell script. Example: Code: Unix Root Prompt# execute "crp" to go to application...
View ArticleORA-00904: invalid identifier
I've been trying to debug this for 3 hours now. TAB is a table where it contains all the table names. If I try to run it without the filter 'where' it runs fine and outputs the number of rows. But when...
View ArticleScript to find the available number possibilities
Hi, I try to get the combination of 6 numbers from (1-60) using any script. Any script that can help me to fix this ... EG: The output should be like that different possibilities from 1-60... 1) 1 3 15...
View ArticleComparing the timestamp of the file to current time
I have a file like this -rwxr-xr-x 1 rewq other 168 Jan 13 07:05 check_files.sh I want to compare (check_files.sh time) with the current time to see if its is older than 2 hours or not if it is not...
View ArticleNot able to install telnet on Solaris 11
Hi Solaris 11 Guru, I am not able to install telent on Solaris 11 with the following error as root: Code: uname -a SunOS servername 5.11 11.2 i86pc i386 i86pc pkg install /service/network/telnet pkg:...
View Articleawk or perl script for preposition splitter
Hello, I am writing a Natural Language Parser and one of the tools I need is to separate prepositional phrase markers which begin with a Preposition. I have a long list of such markers (sample given...
View ArticleHow to execute application command in shell script?
friends, i have application commands to execute in shell script it is something like this. i will login with user data it takes me to $ prompt. Example given below Code: login: data ps : xxxx $...
View ArticleFind commands help
hi gurus, I need a example. I am looking for a source code. where I got the keyword "altria_fetch" and also the keyword is present in the file ".pc" files. and it is present in the directory /fast...
View ArticleExtract a value using sed (easy)
I have this command to replace the version value from PROGRAM (for example here PROGRAM == player) by NEWVERSION Code: sed "/^ *$PROGRAM:/{N; s/[^:]*$/ $NEWVERSION/;}" -i $PRDFILE Code: player:...
View ArticleHelp me in awk commands
can you please let me know what does the below awk command does. Code: awk 'NR>2{printf "%-30s %-15s\n", $1, !($4)?$2:$4;}' result.txt
View ArticleShell script doubt
As per code it is getting matched. not sure why it assigning to cols=0. Any inputs please. Input : passed is Code: shell.sh c tablename. Code: if [$1=c]; then cols=1 table=$2 else cols=0 table=$1 fi...
View ArticleNmon Analysis
Dear All, I am an performance tester. Now i am working in project where we are using linux 2.6.32. Now I got an oppurtunity to learn the monitoring the server. As part of this task i need to do...
View ArticleConvert Data from Column to Row
Hi FileA.txt Code: E_TIM 16, ETE 15, EOND 26, EEC 81, E_1 un, E_2 un, E_3 un, E_4 284, E_TIM 17, ETE 15, EOND 29, EEC...
View ArticleWrite aiff tags in terminal
How can I write metadata to AIFF files in terminal, I'd like to write the 'track number' field of ID3.
View ArticleError removed from file
Below is a flowchart of a program. Most everything works as expected, but there are a couple of issues that I need some expert help on. The check function was setup initially for a single user input....
View ArticleCalling bash script works when called manually but not via Cron?
Hi, I've got a Bash backup script I'm trying to run on a directory via a cron job nightly. If I ssh in and run the script manually it works flawlessly. If I set up the cron to run evertything is...
View ArticleEncrypt Plaintext Password?
How do I encrypt a plaintext password that I need hardcoded in a bash script?
View ArticleIssues after moving gfx card
Hello, I have a Sun V880 and a raptor gfx -8p today i installed a lsi card and had to use the pci slot that the gfx was using as it needed a 5v rail, after doing so i did a reconfigure boot with boot...
View Article