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

GREP Find & Replace

I am making an eBook. I am editing the html in BBedit. I need to replace all <p class="s5"> with just a <p>. How do I write this for GREP? Thank you, Abby

View Article


LINUX - How to compare the values in 2 files & exit from the script

Hi All, I have a requirement where I need to compare 2 files & if the values in the files match, it should proceed, else exit the script without proceeding further. For e.g : Scenario 1 Quote: cat...

View Article


Is it possible to insert compile module after compiled "make" without installing

Hi gud day, I would like to ask if possible to load the driver i compiled module without installing it in the ubuntu-kernel-distro/updates* or simple not executing "make install". what i mean is i...

View Article

echoing complex awk command into file fails

Using hp-ux's shell, I'm trying to echo a complex awk command into a script file for later use. But it fails on a newline character and splits the rest of the command onto the next line. Code: echo '...

View Article

How to know which pages don't have...?

Hi & good day UNIX / Linux folks, Some of my > 700 pages don't have this counter: Code: <!--#exec cgi="/cgi-bin/counter"--> How would one use find (?!) to know which pages _don't have_...

View Article


TimeStamp to unix time

Hi, is there a way to get unix time from timestamp using date function in unix/ OS: SunOS 5.10 Code: input : 2012-07-26 15:00:00 output: 1343314800 Thanks in advance

View Article

Image may be NSFW.
Clik here to view.

Simply Explained

2012-07-27T01:29:21+02:00 Tweet Source...

View Article

Help needed with multiplying two values of two columns in a file

Hi, I am trying to multiply column#1 with column#2 using a shell script. How can I make a for-loop script using 1st column as "i" and the second column as "j" from the following file? Please feel free...

View Article


Install Cacti on Debian for dummies

Hi all, I want to install cacti (frontend to RRDTool) on my Debian 6 VPS. My dummy questions please... The requirements include RRDTool and net-snmp so is there a way to check these are properly...

View Article


Cannot install gedit-plugins-2.16.0 on RHEL 5.7 (Tikanga)

I am trying to compile the gedit plugins with gedit 2.16.0 and RHEL 5.7 (arch: i386). I downloaded the package and followed the instruction in README: The error output: checking for GEDIT... configure:...

View Article

Image may be NSFW.
Clik here to view.

Total time taken

Hi Friend, Need your help. I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command . Example of Log...

View Article

Image may be NSFW.
Clik here to view.

Problem with Special characters in file

Hi, I am facing a below problem. Inorder to mak sure the below file is fixed width i am using the following command Code: awk '{printf("%-375s\n", $0) } so as to add trailing spaces at the end for...

View Article

How do we write an exception in a Regex.

Hello, Actually this is a follow-up of my earlier request to identify Sentence Boundaries while generating snippets for a search engine. The basic regex I have written to delimit sentence boundaries...

View Article


Adding Additional Capacity with megacli

I'm trying to add 6 more hard drives to my RAID array, none of the drives are foreign, they won't be replacing any drives either. I just need to add them to the RAID array. I can't seem to get them...

View Article

Paste text into vi file?

Hello, I'm running OS X 10.7.4. How can I paste text from the pasteboard into an open vim file? Thanks!

View Article


Image may be NSFW.
Clik here to view.

Zip the files if count is more than 0 and send a mail

All, I am new to shell scripting and trying to get the count of files that starts with error and with extension .out, if the count is greater than 0 and zip the file and send an email with the content...

View Article

echo

Hello, I'm working with ksh. I was working with the echo command That is echo "Today is $date" which would show for example Toady is 7/12/12 which was fine however, know I only recieve the first part...

View Article


Image may be NSFW.
Clik here to view.

Bash script to find the number of files and identify which ones are 0 bytes.

I am writing a bash script to find out all the files in a directory which are empty. I am running into multiple issues. I will really appreciate if someone can please help me. Code: #!/bin/bash...

View Article

Expect Script using the split command?

Hello All, I have an Expect Script that ssh'es to a server and does some stuff. In Expect there is a built-in Array Variable called "expect_out(buffer)" which contains all the output from the previous...

View Article

Script to Compare file size and delte the smaller

I am pretty new to scripting, so I appreciate your advice in advance. The problem: 100 directories each containing 2 files that have the same extension with random names. The only attribute that...

View Article
Browsing all 16232 articles
Browse latest View live