Search Results

Search: Posts Made By: sanjaydubey2006
11,521
Posted By sanjaydubey2006
Hi, With above command, the result is...
Hi,

With above command, the result is unexpected and not accurate..

sh-3.2$ if [ "`tar -tf myfile.tar 2>&1> /dev/null`" == 0 ]; then echo "YES"; else echo "NO"; fi
NO
sh-3.2$ if [ "`tar -tf...
6,985
Posted By sanjaydubey2006
@bakunin : I didnt think I needed to respond but...
@bakunin : I didnt think I needed to respond but a clarification is must. No one asked you to respond so you are free to work during your working hours. I did not ask anyone to get me the complete...
11,521
Posted By sanjaydubey2006
I am sorry .. Somehow I am unable to implement ...
I am sorry .. Somehow I am unable to implement
if tar tf "file" 2> /dev/null 2>&1; then
echo "it's a tar file"
else
echo "it's not a tar file"
fi

Need your assistant
11,521
Posted By sanjaydubey2006
my requirement is something like if [ file...
my requirement is something like

if [ file is a tar file ]
then perform some action
else
perform some other action
fi
11,521
Posted By sanjaydubey2006
UNIX command to check if file name ends with .tar OR if the file is a tar file
Hello Team,

Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
...
6,985
Posted By sanjaydubey2006
Unix command to check if file name ends with .tar OR if file is a tar file
Hello Team,

Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
...
6,985
Posted By sanjaydubey2006
Thanks. It worked. The extension to this...
Thanks. It worked.

The extension to this request to awk through the file and get all the records if a particular field value matches the search key.

Eg,

awk -F"|" '$14="<SEARCH_KEYWORD>"'...
6,985
Posted By sanjaydubey2006
Grep through a .tar file without untarring it
Hi All,

I need to grep through a .tar file without untarring it. Would you please help me with that ?

The extension to this request is to use the cut command to extract the data from a...
3,489
Posted By sanjaydubey2006
Appending Date at the end ONLY in first line of file
Hi,

My requirement is to append a date in format DDMMYYYYHHMISS at the end of first line of file which is HEADER. I am trying command

sed -i '1s/.*/&<date_format>/' <file_name>

Where...
1,709
Posted By sanjaydubey2006
@corona688 : Its not working ...
@corona688 :

Its not working ...
1,709
Posted By sanjaydubey2006
@skrynesaver somewhere I see a extra...
@skrynesaver

somewhere I see a extra character on wc -c ..
thanks for your help anyways .
I must admit that I am newbie in sed

---------- Post updated at 12:40 PM ---------- Previous update...
1,709
Posted By sanjaydubey2006
Selecting data between [ and ]
Hi Team,
I am searching through log file using

grep -i '<search_key>' <file_name>|awk '{print $18}'


example outputs are

[MY_DWH]
[MY_CATEGORY]
[MY_LEARNING_DATA]


I would like to...
954
Posted By sanjaydubey2006
guys,I have never tried the same through unix...
guys,I have never tried the same through unix ....
We do have ETL in place that could be a workaround.

Thanks
Sam
954
Posted By sanjaydubey2006
dispalying the data on a web address
Hi Team,
My requirement is to get the details from a file or DB (sources) and post it on a web address from where users can see latest data.
Please help me in following :
1. How to create a web...
1,839
Posted By sanjaydubey2006
THIS WAS INDEED HELPFUL
THIS WAS INDEED HELPFUL
1,839
Posted By sanjaydubey2006
Using dynamic arrays to extract the values
Hi all,
We have requirement to generate load timing based on subject areas HOUSEHOLD, BANKING and TRADING. These values are stored in an array SUB_ARR
SUB_ARR=("HOUSEHOLD" "BANKING" "TRADING")...
5,963
Posted By sanjaydubey2006
Calling an Anonymous Block through shell script
Hi,
My requirement is to load a LONG datatype data value from one table to another as direct access does not work (DB: ORACLE).
eg.
SELECT *FROM ALL_VIEWS WHERE TEXT LIKE '%<SEARCH_STRING>%';
...
2,584
Posted By sanjaydubey2006
no idea on perl man ... anything specific to...
no idea on perl man ...
anything specific to shell scripting ?
2,584
Posted By sanjaydubey2006
Attaching two text files in two different sheet in same excel
Hi,
My requirement is to get attach two different text file contents to two different sheets in same excelsheet. Also, is there any way we can name the tabs as desired ?
Kindly assist.
1,542
Posted By sanjaydubey2006
silly mistake but you made it perfect !!! Thanks...
silly mistake but you made it perfect !!! Thanks my bro !!
1,542
Posted By sanjaydubey2006
To select a script name till .ksh or .sh
Hi All,
My requirement is to search for a Table Name [or other objects] being used in list of script placed at a dir path :
we are using below command to get the desired result :

grep -H -i...
Showing results 1 to 21 of 21

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