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

How to grep for a complex String?

Hi, I have a file hello.log which has the below entry Code: ./logs/mymac/myserver.log:####<Jun 7, 2015 12:56:54 PM EDT> <myserver.my.bank.com> <mymac> <[ACTIVE] ExecuteThread: '5'...

View Article


Image may be NSFW.
Clik here to view.

Copying a file from secure host to desktop

I have extremely limited programming experience so please go slowly! I am remotely logged in to a secure network cluster via my username at my school through terminal. I'm trying to download a file...

View Article


How to subdue the keyboard?

This has got me stumped and no solution on the WWW or here either that I can see. I suspect this can't be done... ;o( My requirement is to hold a _random_ key down and run a single command. Easy EXCEPT...

View Article

HTML parsing with UNIX shell script

Hi there, Code: Infra/LEXUS0157/lexus0157.html-<tr><td>Minimum password age</td><td>3 days</td><td>Win2k8 Server</td></tr> How do I extract from this...

View Article

Finding null column value using array

hi, Am trying to find a solution for finding a null column value inside a loop using array. Code: for eg: two three five From the above array myarray[0],myarray[3] and myarray[5] having null values....

View Article


Rmmod,modprobe or dracut?

I am making few changes inside modprobe.d directory, now there are two options to make them effective 1) rmmod module, make changes and modprobe module 2) dracut -f I was wondering what's the...

View Article

UPDATE COmmand post comparing 2 columns in 2 mysql tables

hI I have 2 tables name master and client my master table looks like: Code: +-----------+--------+--------+--------+--------+-----------------+---------------+-----------+------------------+ | name...

View Article

Extract strings from XML files and create a new XML

Hello everybody, I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new...

View Article


Comparing floating number and replace the smaller one with awk?

Hi guys, I tried to write a script for replacing some number in a bunch of files. However, I failed because my limited bash scripting knowledge. Here I will explain the expected function: I have many...

View Article


File splitting according to the length of the fields

Hi All, I have two files: 1> Data file 2> info file which has field lengths and start position. Is there a way to create a comma delimited file according to the fields length and start position....

View Article

Find sessionids after match

Hi Guys, I need a help on writing shell scripting where I am stuck on finding keyword after a grep match. file.log (sample) Code: line1 -> ppp dfasf adgasg session out sfsgsgsghsgh line2 -> sdaf...

View Article

Field seperator

Hello All, I have a file, but I want to separate the file at a particular record with comma"," in the line Input file APPLE6SSAMSUNGS5PRICEPERPIECEDOLLAR600EACH010020340URX581949695US to Output file...

View Article

Search replace hostname in htm files

Need assistance in changing the hostname I have multiple html files in a directory , its src is pointing to Code: houston.sp.com and it needs to change to Code: alaska.sp.com . Below is the example...

View Article


Multi head/multi window hello world

I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on...

View Article

awk join 2 files

Hello All, file1 Code: A1;B1;C1;D1;E1;F1;G1;H1;III1;J1 A2;B2;C2;D2;E2;F2;G2;H2;III2;J2 A3;B3;C3;D3;E3;F3;G3;H3;III3;J3 A4;B4;C4;D4;E4;F4;G4;H4;III4;J4 file2 Code: III1 ZZ1    S1        Y    1    P1...

View Article


SAN Migration question

Hi, I am very new to HP-UX, and we're going to be doing a SAN migration. We're going to take down the machine, and zone it to the new SAN. My question is, will the device names change and will that...

View Article

Xinuos Announcement

The people that bought out SCO, have introduced a new product Openserver X. Essentially it is BSD 10.1. Xinuos Announces OpenServer X Operating System to Deliver Enterprise-Class Solutions to Companies...

View Article


Image may be NSFW.
Clik here to view.

Unable to perform yum update

Hi, I run RHEL 5.2 as a server in my lab. Now the issue I am facing is that I am unable to update my machine using yum update. It shows an error of missing dependencies though dependencies are already...

View Article

Image may be NSFW.
Clik here to view.

Converting another line to another format

Hi there, How can i shorten this: Code: grep -ri "Password must meet complexity requirements" "$line" | sed  's/\t/<\/td><td>/' | sed 's/^.*:/<tr><td>/'| sed...

View Article

Best Alternative for checking input parameter contains required value or not

Any good way to check if code has the required output Code: # /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts net.ipv4.icmp_echo_ignore_broadcasts = 1 Code: /sbin/sysctl...

View Article
Browsing all 16232 articles
Browse latest View live