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

Add a block of code at the end of a specific block

I need to search for a block with the starting pattern say "tabId": "table_1", and ending pattern say "]" and then add a few lines before "]" Code: "block1":"block_111" "tabId": "table_1", "title":"My...

View Article


Logged in users on a Linux server are counted twice

Scenario: 1. Log into a linux server interface as root. 2. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser). 3. Log into TTY2 of the linux server interface...

View Article


How to add \ in front of $ in a script with vi?

Please help to provide command in vi to add \ in front of $ so it does not interpret next character. Code: rm interfaces/DART/WEB-INF/classes/DART/util/TotalDisconnectUtil$1.class rm...

View Article

Gcc and C/aC++ co-existing on HP-UX Itanium system

Our company developed applications on an HP-UX 11 Itanium system using gcc. We did not have HP's C/aC++ system installed. We are now attempting to install/run on a customer system that already has...

View Article

Logged in users on a Linux server are counted twice

Scenario: 1. Log into a linux server interface as root. 2. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser). 3. Log into TTY2 of the linux server interface...

View Article


Image may be NSFW.
Clik here to view.

Output calculations

Attached are the is original output (zipped file) and a custom file using the awk code below in which the average reads per bait are calculated (average.txt) Code:   awk...

View Article

Using sed for deleting the first word of each line?

Code: sed /'1-2'/&^/ filename suppose there is a file containing three lines , how do we do delete the word from each line? Code: hyter efr frf  rerfer efe ewd  cdcf evrfgf erfv the output has to...

View Article

Need help with script to copy code to multiple servers

Hi, I am new to scripting and i am trying to use below script to copy code to multiple servers and multiple locations on each server. the script is not working or doesnt give any error. Any help is...

View Article


Search files in UNIX based on execution

Hi, I have a UNIX script to fetch all the files for current day. so I am using code-- "files=($(find x.lst -maxdepth 1 -type f -daystart -mtime -1))". But this is not going to work if my job starts at...

View Article


Image may be NSFW.
Clik here to view.

A bit of light relief...

How about a thread to show your Desktop, Console or computing environment... This is my current MacBook Pro 13 inch screen... Let's see some others no matter how boring... ;oD Attached Images...

View Article

Now showing the correct output

Hello I am working on one script where I am trying to display all the directories which is inside the workspace but somehow it is giving me weird output and this is occurring only with one directory...

View Article

C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi Everybody, I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same? Could not...

View Article

awk - CSV file - field with single or multiple spaces

Hi, In a csv file, I want to select records where first column has zero or multiple spaces. Eg: abc.csv HTML Code: ,123,a   ,22,b     ,11,c a,11,d So output should be: Code: ,123,a   ,22,b     ,11,c...

View Article


Image may be NSFW.
Clik here to view.

Calculating the running time

Hi All, I want to run a utility for all the process id that are running for more than 15 mins. I have captured process id's and the time that they were run in a file like below 1st column represnts the...

View Article

C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi Everybody, I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same? Code: Could...

View Article


Open Solaris 10.1 Installation not completed Successfully

Hello Friends, I want to Install Multiple Operating Systems on my Machine. Machine Config: Intel Core(TM)2 CPU E7500, speed:2.93 ghz RAM : 4gb For that I had done Partition Using tool Gparted Live cd....

View Article

Parsing nsupdate's output

Anybody that's ever used nsupdate knows that it's error management is not very good. I have a wrapper script that when it's got all the information it needs launches the nsupdate command. This is my...

View Article


SCO Will Not Boot

Hello to all , I am new to this forum and also i have very less knowledge about sco unix, but I have good knowlage about Dos-Windows file systems since 1990 year :) and i am a professional IT person...

View Article

Migrate users from 1 Solaris 10 to a different Solaris 10 server

Hello, I have to backup users from one server and put them on another server. I have tried cp -pr, copied over the passwd, group, shadow and appended the users from the old server to the new servers...

View Article

Comparing files by date/time

I am trying to compare identically named files in different directories and replace a file only with a newer version. Is there a way of doing this? TIA

View Article
Browsing all 16232 articles
Browse latest View live