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

Local Networking no longer possible-Unable to mount location

Unable to mount location Can anyone help with this please? Since recently installing 12.04 from a downloaded live CD onto my desktop computer, I have been unable to re-establish a network connection...

View Article


Environment Variables

1. The problem statement: What is the mesg value set for your environment? If it is on, how would you turn off your current session? How would you set it permanently? 3. The attempts at a solution :...

View Article


SQL SELECT REPLACE

Hi All, I had a query related to sql select update replace command. i have a table named clusters and it looks like this name model characteristics sample1.1 +123 parent sample1.2 -456 clone sample1.3...

View Article

Merge output of 2 commands into variable

I am extracting two pieces of information from the following file: /proc/cpuinfo, that I need to merge into one report. The first command: grep -i processor /proc/cpuinfo | awk '{print $1$2,$3}'...

View Article

Need help how to create a file (xml) list all files from directory

I have more than 10K songs in two directories on a hard drive. I would like to create a file list all of files name then change to .xml extension to upload to iPhone so I have a Karaoke list on my...

View Article


Filtering first file columns based on second file column

Hi friends, I have one file like below. (.csv type) Code: SNo,data1,data2 1,1,2 2,2,3 3,3,2 and another file like below. Code: Exclude data1 where Exclude should be treated as column name in file2. I...

View Article

outlook 2010 issue on Mac

I just got Apple MAC, another user left the company. So I am taking over the support for Mac. Any way, after setting up the MS- Outlook on Mac, I don't see " Archive " folder. I do see all other...

View Article

printing certain elelment of a column

"File1.txt" Code: CHR SNP BP ANNOT 8 rs1878374 127974042 MYC(-843.5kb)|FAM84B(+334.4kb) 2 rs2042077 16883103...

View Article


DBUS_SESSION_BUS_ADDRESS for script called from crontab.

Hi, I'm writing a Bash script for wallpaper clocks which works fine on the command line but needs to be run every minute from a crontab entry so the time gets changed on the wallpaper (the wallpaper...

View Article


sed one-liner

I have a data base of part numbers: AAA Thing1 BBB Thing2 CCC Thing3 File one is a list of part numbers: AAA234 BBB678 CCC2345 Is there a sed one-line that would compare a data base with and replace...

View Article

Read from a file in unix

Hi All I have a file type such as Code: [TEST] client=SSH server=testing user=abc password=xyz dir=home [Run] client=putty server=running user=pqr password=sas dir=main [dump] client=nothing...

View Article

Image may be NSFW.
Clik here to view.

redirecting with file descriptor

hello, Someone can help me with redirectors? I am writing this script in bash enviroment on Fedora: Code: exec 4<> /dev/tcp/10.10.11.30/5000    #open socket in input/output strings<&4...

View Article

How to get top level parent directory

Hi All, I have a directory like this: /u01/app/oracle/11gSE1/11gR203 How do i get the top level directory /u01 from this? Tried dirname and basename but dint help. I can this using echo $ORACLE_HOME |...

View Article


Add a Group ID to each row

I have a sample data like this: user1 1001 role1 user2 1002 role1 role2 user3 1003 role1 role2 role3And I need to convert it like this: 1,user1 1,1001 1,role1 2,user2 2,1002 2,role1 2,role2 3,user3...

View Article

Image may be NSFW.
Clik here to view.

awk or sed one liner

I have a data base of part numbers: Code: AAA Thing1 BBB Thing2 CCC Thing3 File one is a list of part numbers: Code: XXXX AAA234 XXXX BBB678 XXXX CCC2345 Is there a sed one-line that would compare a...

View Article


Question about REGEX Patterns and Case Sensitivity?

Hello All, I'm in the middle of a script and I'm doing some checks with REGEX (i.e. using the '[[' ). I'm wondering if this example is correct or if its just a coincidence. But I thought that if I did...

View Article

Image may be NSFW.
Clik here to view.

parsing log files in to a spread sheet

Hi Guyz, I need to extract only the data/time, uid , and the message at the last " invalid password format", to a spread sheet. this is one of the lines from a log file from which i need to extract...

View Article


How many DNS queries

Is there any way to see how many queries come into our external DNS server? In looking at DNS providers, most of them base pricing on number of queries per month so I just wanted to see if you had any...

View Article

Image may be NSFW.
Clik here to view.

Meta

2012-10-15T23:29:15+02:00 Tweet Source...

View Article

mtrace shows memory not freed , seems malloc memory leaks

Hi guys had written cs_malloc to encapsulates malloc , the result would be automatically filled with the new memory position or NULL on failure . but seems there is some bug in my cs_malloc function ,...

View Article
Browsing all 16232 articles
Browse latest View live