Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live
↧

How can i get libatlas-base-dev version?

Hello, Please i have installed libatlas-base-dev on my Ubuntu Trusty Tahr: Code: sudo apt-get install libatlas-base-dev Which command can i use to get the version of the library installed ? Thanks a...

View Article


Bash to download specific files and save in two folders

I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way...

View Article


Shell Monitoring Script

Hi guys, I didn't understand this monitoring script request - I don't ask for the script result. If you understand the request, I'm just asking an explanation to simplify it for me. THE Script Request:...

View Article

Updating value from new last line of tempfile

Heyas A variable within a loop doesnt get updated - eventhough the 'inputfile' changes. I have a tempfile ($TMP.playstatus), which contains this data: Code:   0.11 M-A:  0.000 fd=  0 aq=    4KB vq=...

View Article

Separate HDD test using RAID controller

Hello, I am using Red Hat 2.6.23.1 with RAID 6 controller (card). (When I use "cat /proc/partitions" I do not see the separate HDDs in the RAID, I see one drive for the RAID itself, as it is considered...

View Article


Create file from script shell

Hello all :) Here is my code i try to complete: Code:   address1="$(ssh  root@$machine -x "lxc-info -n $machine-worker1  -H -i")" if[!test -e addrfile ] //ifthe file addrfile does not exist  then...

View Article

Read Oracle connection details from a configuration file

Hi, Is it possible to pass oracle connection information from a configuration file and use that to connect to oracle database in my unix shell scripts. Following is the scenario: (1) I would like to...

View Article

[Web Design] Slideshow Layering

I designed a website with a slideshow (slideshow created with WOW Slider). The slideshow always appears as being on the top layer, and I don't want it that way. You'll notice I have a fixed menu which...

View Article


Hange display format

I have a file , the file content will be modified regularly , its structure as below, the lines are begins with "A" and "B" . #vi file1 Code: this is testing file A  aaaaa B  bbbbb A  ccccc B  ddddd A...

View Article


Unable to do SFTP using expect

Hi, I am trying to sftp using expect, but not getting through as it prompt for password is coming Following is the code Code: #/usr/bin/expect > output.log sftp medcdr@10.130.254.50 expect...

View Article

Sort words based on word count on each line

Hi Folks :) I have a .txt file with thousands of words. I'm trying to sort the lines in order based on number of words per line. Example from: Code: word word word word word word word word word word...

View Article

Merge CSV files

I have lot of csv file collected from script like below : Name of files (some examples) there are thousands of it: Code: 192.168.0.123_251_18796_1433144473.csv 192.168.0.123_251_18796_1433144772.csv...

View Article

Image may be NSFW.
Clik here to view.

Extract Specific Information from a particular field

Hi, I am trying to extract a specific information from a file which contains more than 200 million records. Attached the input file for your reference. My file contains information below Code:...

View Article


How can i list Solaris External storages?

Hi how can i list Solaris external storage's only, ie SAN, Code: # for fs in `mount -p | egrep 'ufs|zfs|vxfs' | awk '{print $3}'`; do df -h $fs | sed 's/%//g' | grep -v capacity; done...

View Article

Image may be NSFW.
Clik here to view.

Hundreds of files need manual preparation. Does shell script could do it...

Hello friends, I have hundreds files in hand, which need extract some data from logs and read these data into an input file. Here I will explain in detail using these two files as attached. read some...

View Article


Using awk and sed to replace text

Good Day Every one I have a problem finding and replacing text in some large files that will take a long time to manually edit. Example text file looks like this #Example Large Text File Code: unix...

View Article

Script to Run Multiple Systems Checks and mail me the results after every...

Hello, I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot. For this, I...

View Article


Problem in compressing and moving files

Hi I am writing a sample script (sample.ksh) to compress files in the source directory and move them to another directory. The script takes a config file (files.config) as the paramter the contents of...

View Article

Find file by filename or with newest modified date

Hi, I have a directory that has numerous files in it, and there is two which are named "filerec_ddmmyyHH24MMSS" by the time they are created so "filerec_010615012250" was created at 01:22:50 on 1st...

View Article

(hard one) awk, copy matching 2 col & 10-12 rows, is it possible?

Hey guys, my first post here. I'm trying to use awk to copy all matching paragraphs from one file The file looks like this : Code: Test Case Number 990990003099 Card Type CCCC Transaction Type Sale...

View Article
Browsing all 16232 articles
Browse latest View live