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

sed add space X times

Pattern: Mary walks at the park every day with her children Code: sed 's/$/ /' will make it add 1 space at the end (trailing) I want to add X ($VARIABLE) number of spaces (which comes from RANDOM) i.e....

View Article


Sendmail 8.14 FEATURE dnsbl seems broken

Hello, I am running three debian email servers and recently wanted to address spam coming in to them. One sever is sendmail version 8.14.4 the other two are 8.14.3. All three servers exhibit the same...

View Article


Getting MAXIMUM transfer speed on LAN

Dear All, I have a problem with the transfer speed between 2 hosts on my local network (LAN). At home, I have a switch (NETGEAR GS105 ProSafe 5-Port Gigabit Ethernet Desktop Switch) which obviously...

View Article

Cant update yum what so ever [Errno 14] HTTP Error 404 - Not Found

Hello!!! I am so frustrated I'm about to snap!!! I cant hear any sound in Firefox or re-install Chrome. Every time I try to do anything with YUM inside my terminal (like update or install) I keep...

View Article

Image may be NSFW.
Clik here to view.

What does ?xdm? under the IDLE column mean?

I'd appreciate an explanation of the ?xdm? listing under the IDLE column (see below) after I ran the 'w' command in BASH. I recently used 'umask 0022' but reset it to 'umask 0000' I can't think this...

View Article


Solaris 11 iscsi chap auth

hi to all i've done that steps, but i was not completely successful: Code: sudo pkg install group/feature/storage-server sudo svcadm enable stmf sudo zfs create -V 1g rpool/LUN1 sudo stmfadm create-lu...

View Article

Service restart daily

Hi, Beside using crontab, what is other application we can set it? Normally I check using command crontab -l. Any other path I need to check? Please guide me. Thanks.

View Article

Check for existence of crash on Solaris 10

Hey all what is the command to check "Check for existence of crash/coredump files in /var/crash/"hostname" directory" thanks for help

View Article


Alom

Hi, How to set ip address on eth0 for access ssh from ALOM? Is it possible? Now i cannot access it because don't have VGA. I keep try to access using ssh. Please guide me. Thanks.

View Article


UNIX Memory

what is the difference between cached and buffer memory? can i use either buffer or cached memory if i want to run an application?

View Article

Workspace Manager Menus - dtwmrc file

When I execute this command: Code: exec xterm –e $SHELL –c “sed –n 4p /folder1/folder2/folder3/file.dat; $SHELL” I have the expecting result: It opens an new terminal, it shows the 4th line of the file...

View Article

Remoting sudo commands & bypassing bashrc

What I want to do is not unique, except that our environment has a twist. I want to ssh to a remote server and issue a sudo command to run a script. This isn't working, but you'll get the gist. Code: #...

View Article

Parsing a file and pulling out specific columns

Hi, I am having some difficulty pulling out specific columns using awk. I think what I am doing is iterating through the various columns looking for a match and asking awk to print if a match is found....

View Article


Image may be NSFW.
Clik here to view.

awk - Create a matching key- Take $4$3$2 from Line 01 and $4 from Line 07

Any help is greatly appriciated. Desired Matching Key: $4$3$2 from line 01 and $4 from line 07 of A.txt Example: In A.txt $4=5000, $3=68, $2=89 in line 01 and $4=RT0429 or RT0428 or RT0588 in line 07....

View Article

Replace 0 with 1 in multiple fields with awk

Hello, I have the following input file: Code: 1        3        3        2 3        3        4        0 4        0        5        4 5        2        2        0 5        3        4        0 6        0...

View Article


Pivot Column using awk

Hello everyone I have a 20M file which is having the below sample layout Code: 1111,ABC,100 1111,DEF,200 1111,XYZ,300 4444,LMN,100 4444,AKH,500 4444,WCD,400 2222,ABC,100 7777,DEF,300 7777,WCD,300 I...

View Article

File conversion from Binary to ASCII though UNIX command

Hi All , I have a mainframe file which contains the data in EBCDIC format.I have downloaded this file from mainframe to windows in binary format(unreadable raw data).Now I want convert this file to...

View Article


EBCDIC TO ASCII Conversion through UNIX Command

Hi All , I have a mainframe file which contains the data in EBCDIC unreadable format.I have downloaded this raw unreadable file from mainframe system to windows in text format then I pushed to Unix...

View Article

Need help in sending html mail with attachment

Hi Everyone, I am facing problems in sending html mail with attachemnt. I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and also html mail without attachment...

View Article

Need help in comparing two files in UNIX with a mismatch

Hi Everyone, I am comparing results of two environments using unix files. I am writing two different csv file using spool and merging both the files using paste command paste -d, file1.csv file2.csv...

View Article
Browsing all 16232 articles
Browse latest View live