Search Results

Search: Posts Made By: ekharvi
3,025
Posted By ekharvi
Is there a way to find out put from double echo...
Is there a way to find out put from double echo something like below

var=`echo `echo $I``

$I containes the $ and second echo should display the actual path , Any examples ?
3,025
Posted By ekharvi
$PATH1 and $PATH2 are visible for all users or...
$PATH1 and $PATH2 are visible for all users or environment variables set in the .proifile
3,025
Posted By ekharvi
Echo not working with $
$cat FILE.txt

$PATH1/file1.txt
$PATH2/file2.txt

where$PATH 1 = /root/FILE_DR/file1.txt
$PATH 2 = /root/FILE_DR/file2.txt
for I in `cat FILE.txt`

do
v=`echo $I`

echo $v


if [...
1,784
Posted By ekharvi
$ ls -lrt file* -rw-r--r-- 1 08:53 file1.txt ...
$ ls -lrt file*
-rw-r--r-- 1 08:53 file1.txt
-rw-r--r-- 1 08:54 file3.txt
-rw-r--r-- 1 10:50 file2.txt

$ awk '/FIRST/ && !/SECOND/ {print FILENAME}' file*
file1.txt
file2.txt
$ cat...
1,784
Posted By ekharvi
$ ls -lrt file* -rw-r--r-- 1 08:53 file1.txt ...
$ ls -lrt file*
-rw-r--r-- 1 08:53 file1.txt
-rw-r--r-- 1 08:54 file3.txt
-rw-r--r-- 1 10:50 file2.txt

$ awk '/FIRST/ && !/SECOND/ {print FILENAME}' file*
file1.txt
file2.txt
$ cat...
1,784
Posted By ekharvi
there can be n number of files , just giving...
there can be n number of files , just giving Direcotry not giving file names,

Also when -v is given it will find in the current line only not in the entire file.

need to find all files in the...
1,784
Posted By ekharvi
tried find . -type f |awk '/FIRST/ &&...
tried

find . -type f |awk '/FIRST/ && !/SECOND/ {print FILENAME}'

did not work.
1,784
Posted By ekharvi
List of files
I have 3 files in directory X, below are the files and its contents.

ls -lrt

File1.txt
File2.txt
File3.txt


>cat File1.txt

dfgjhf fjd FIRST

>cat File2.txt

dfgjhf fjd SECOND FIRST...
844
Posted By ekharvi
New line
I have a file which has below data, i need to replace all new line characters within the quotes only,please help?

"Data"|"Data2"
"Data"|"Data
2"
"Data"|"Data2"
"Data"|"Data2"
"Data"|"Data
2"...
1,396
Posted By ekharvi
profiler
What is a hard and soft match in unix profiler ???
Showing results 1 to 10 of 10

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