Search Results

Search: Posts Made By: cola
87,166
Posted By cola
After deleting the first column there a leading...
After deleting the first column there a leading space. How can I delete the first column with the extra space between first and second column?
87,166
Posted By cola
Is it possible to rewrite this code without 1?...
Is it possible to rewrite this code without 1? (using something like print)
87,166
Posted By cola
$1 is the first column, first column is replaced...
$1 is the first column, first column is replaced by null string. But what is 1 here?
87,166
Posted By cola
How can I remove first column with awk?
cat input.txt

a x
b y
c z

Expected output

x
y
z
7,044
Posted By cola
Is it possible to add Python in the description of Shell Programming and Scripting of this forum?
https://www.unix.com/shell-programming-and-scripting/
The current description of Shell Programming and Scripting has:

Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell...
4,284
Posted By cola
find . -type f -exec grep "make" {} \; Is it...
find . -type f -exec grep "make" {} \;
Is it possible to get the same output with find without using -exec grep? Does find have anything to search string in files?
4,284
Posted By cola
Are {} \+ and {} + same?
Are {} \+ and {} + same?
4,284
Posted By cola
What's the difference between {} \; and {} + or...
What's the difference between {} \; and {} + or {} \+ ?

Is it possible to call multiple commands with -exec like piping:

find . -type f -exec onecommand | secondcommand {} \;
What's wrong with...
4,284
Posted By cola
How can I use find command to search string/pattern in a file recursively?
Hi,

How can I use find command to search string/pattern in a file recursively?
What I tried:

find . -type f -exec cat {} | grep "make" \;

Output:

grep: find: ;: No such file or directory...
1,139
Posted By cola
Debian wheezy
Debian wheezy
1,139
Posted By cola
Doesn't print anything.
Doesn't print anything.
1,139
Posted By cola
How can i find texts inside a html tag using sed?
How can i find texts inside a html tag using sed?
Html texts:


What i tried:

cat infile | sed -e 's/\(<kbd*\)\(.*\)\(kbd>\)/\2/

Expected result like this:

sed -i -e...
1,349
Posted By cola
echo "22.152.25.36 - K##### [03/Jul/2013:18:05:00...
echo "22.152.25.36 - K##### [03/Jul/2013:18:05:00 -000] GET /DGGKE/GetMail.do;jwebsphere=FADFFFGSFGSFGSDGFSDFGSDFGSDF HTTP/1.1 200 44948" | sed 's/;[^ ]*//'


output

22.152.25.36 - K#####...
47,700
Posted By cola
It will print the filename not the contents of...
It will print the filename not the contents of the file. It looks this find command prints the content of the file too.
Like

grep -lri "mail" *


How can i find those filename with the...
47,700
Posted By cola
@jlliagre , @jim mcnamara...
@jlliagre , @jim mcnamara (https://www.unix.com/members/32659.html),

Is it possible to get the same result with only grep command ?

---------- Post updated at 07:11 PM ---------- Previous update...
47,700
Posted By cola
How can i find a word inside a file from a directory and it's subdirectory ?
Suppose i have a word "mail".
I have to search this word in all files inside a directory and it's sub-directories.

It will also search in all hidden directory and sub-directories.

If it finds...
2,965
Posted By cola
From the manual there are: -exec...
From the manual there are:

-exec command ;
Execute command; true if 0 status is returned. All following
arguments to find are taken to be arguments to the command...
2,965
Posted By cola
I know this command. Confusion was, will it...
I know this command.
Confusion was, will it search recursively inside directory?
2,965
Posted By cola
Any example?
Any example?
2,965
Posted By cola
Script to delete all something.txt~ file from a directory
There are some files in a directory like a.tx~ , b.txt~,c.txt~.
I want to delete all these files inside that directory and sub directory.
How can i do this?

#!/bin/bash
cd thatdirectory
.........
5,801
Posted By cola
If it is ftp mirror then what would be the...
If it is ftp mirror then what would be the command?
5,801
Posted By cola
Does not work.
Does not work.
5,801
Posted By cola
Can't get it.
Can't get it.
5,801
Posted By cola
wget command help to download packages from mirror
Index of /distribution/openSUSE-stable/repo/oss/suse/i586 (http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/suse/i586/)

How can i download packages with wget from that mirror...
1,996
Posted By cola
How can i delete html attributes from tag ?
Input:

<table class="pixelBorderTable faqTable" width="100%" border="1" cellpadding="3" cellspacing="0">
<tbody><tr>
<td class="pixelBorderTableHeaderTd" valign="top" width="20%"...
Showing results 1 to 25 of 190

 
All times are GMT -4. The time now is 05:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy