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

Print rows based on separator

For below lines in a file. Code: 68078971    dance routine (jess far back corner)    13902786 368079527    dance routine    13902786 368081191    dance routine (jess far back)    13902786 I am looking...

View Article


Help with approach and developing script

Hi- I need to develop a script for following scenario in AIX and K shell environment.I am from windows server background for most my career ,so please bear with me and advise suitable approach and...

View Article


Password check in bash script calling on expect

password check in bash script calling on expect Background: I have to copy a file from one server, to over 100 servers in a test environment. once the file is copied, it requires to have the...

View Article

Perl script countdown

In the below bash when the perl is it possible to hide the commands from running on screen and display a process countdown? For example, on the cygwin screen now the user sees each process in the...

View Article

Image may be NSFW.
Clik here to view.

Comparison between two files through UNIX script

Hi All , As I am new to unix scripting ,I need a help regarding unix scripting .I have two .txt files .One is source file and onother is target file.I need a script through which I can compare those...

View Article


Append string to all the files inside a directory excluding subdirectories...

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3...

View Article

How to patch Linux redhat Red Hat 4.1.2-48 without Internet?

HI all, I need to patch(updated a linux redhat server (Red Hat 4.1.2-48) that it is on production, this server cannot have internet access. How can I do this patching (update). there is link to...

View Article

I/O Utilization of Specific File System

Hello there, Below is the output of df -kh: Code: Filesystem            size  used  avail capacity  Mounted on /dev/md/dsk/d0          12G  8.8G  2.7G    77%    / /devices                0K    0K    0K...

View Article


Tar error

do you have idea what is the limit to zip the file. Code: + tar -cvf - today.txt tar: Size of today.txt >= 8GB.  Not dumped.

View Article


X -configure fails on NetBSD: Number of created screens does not ...

Hello, my system is NetBSD 6.1.5 on AMD64. 'X -configure' prints following message: "Number of created screens does not match number of detected devices" Only motherboard's on-board graphic is using....

View Article

Find and Move files

I have the below command to delete all .xml files older than 90 days find . -type f -name '*.xml' -mtime +90 -exec rm {} \; What will be the command to move all the .xml files older than 90 days to...

View Article

Copy mismatch while copying RHEL DVD to folder

Hi, Here is this weird thing happening here. I mounted RHEL 6.6 DVD on a directoy Code: /a , I am trying to copy it's content to another folder by using command: Code: cp -pr /a/* /new/folder But while...

View Article

Wget and tar

Is it possible to pipe a tar -xzf with a wget ? Thank you :). Code: wget http://www.openbioinformatics.org/annovar/download/0wgxR2rIVP/annovar.latest.tar.gz | tar -xzf annovar.latest.tar.gz

View Article


T3-2 and Solaris 10 Problem

Hi Guys, I got a unique (and wierd) problem with trying to install Solaris 10 off of a DVD on a T3-2. You boot cdrom, it goes through the questions and then when it comes to ask you if you want to...

View Article

Trying to pass a password: bash: syntax error near unexpected token `('

howdy, so I'm make a plugin work for Nagios, and the commandline is: /usr/lib/nagios/plugins/check_mssql -H MySQLServerName -u MySqlAccountName -p MyPassword(#XXXXX -d MyDatabaseName it is barfing...

View Article


Generate .csv file a text file

Hi guys, I have a text file that states: Code: cat prod.hosts 11.29.130.14  host1        host1.test.com        web17 11.29.130.15  host2        host2.test.com        web18 11.29.130.16  host3...

View Article

Searching value in table through awk

I need to create one script in which I want to search in txt file , this txt file is having 10 columns , I want to check 4th column value if "BOY" & 10th column value =>500 it will print 4th...

View Article


Image may be NSFW.
Clik here to view.

Resize or delete directory

Hi, Is it possible i delete /rpool/ldom-zones ? I want to claim back 400G and put at /export/home. Please guide me how to do it. Thanks. Attached Images pic47.PNG (16.5 KB)

View Article

Working with UTF char sqlplus

I have below SQL that I wasnt to run from a solaris machine using sqlplus select * from TABLE_NAME where regexp_like(field_value,...

View Article

Parse/Split Single file into Multiple Files based on string (awk preferred)

Guys, Really need some help here. I have a file in /share/ack/input: Code: stuff stuff stuff stuff stuff varying number of blank lines Net Order Totals                        XXXX.XX varying number of...

View Article
Browsing all 16232 articles
Browse latest View live