Search Results

Search: Posts Made By: Hypesslearner
960
Posted By Hypesslearner
Hi Here is the example and what i have...
Hi

Here is the example and what i have tried

I have files getting copied everyday like below



Bkp_20151123160720.tar.gz
Bkp_20151122160720.tar.gz
Bkp_20151121160720.tar.gz...
960
Posted By Hypesslearner
Delete all instances of a particular file in that month
Hi

I need to move one file from source path to target path .Before moving , I need to go to target path and delete the files having certain naming convention in that particular month . So at any...
2,675
Posted By Hypesslearner
Yes Got it now and here it looks like ...
Yes Got it now and here it looks like


if [[ "$2" != "" && "$3" != "" && "$4" != "" ]]
2,675
Posted By Hypesslearner
Still it is executing step1 only if...
Still it is executing step1 only

if [["$2"!=" " && "$3"!=" " && "$4"!=" "]]
then
echo "Execute step1
else
echo "Execute step2"
fi
2,675
Posted By Hypesslearner
Parameter checking is not working I am...
Parameter checking is not working

I am passing as below
$2=ABC and $3,$4 as empty but this is executing step1



if [["$2"!="" && "$3"!="" && "$4"!=""]]
then
echo "Execute...
2,675
Posted By Hypesslearner
I am looking for 4 ascii characters and its...
I am looking for 4 ascii characters and its working now with above code . Thanks all .
2,675
Posted By Hypesslearner
If condition problem
Hi All,

I am using below if condition to check whether null is passed as a parameter to the program


if ["$3"="null"] or ["$4"="null"];
then
echo "ABC">>$FILE
else
echo...
1,187
Posted By Hypesslearner
Convert Column data values to rows
Hi all ,

I have a file with the below content


Header Section
employee|employee name||Job description|Job...
2,992
Posted By Hypesslearner
Delete and insert columns in a tab delimited file
Hi all ,

I have a file having 12 columns tab delimited .

I need to read this file and remove the column 3 and column 4 and insert a word in column 3 as "AVIALABLE "

Is there a way to...
11,477
Posted By Hypesslearner
Wow That worked ---------- Post updated at...
Wow That worked

---------- Post updated at 10:31 PM ---------- Previous update was at 09:34 PM ----------

Hi all,

Here is my code



awk '
BEGIN {
FS=OFS="|"
COMMA="|||||"...
11,477
Posted By Hypesslearner
Thanks Singh for the quick reply , I am trying to...
Thanks Singh for the quick reply , I am trying to extend the same code now as below

awk 'BEGIN {FS=OFS=","}
{$1="Align"
$COMMA=" , , , , ,"
$SIT="SIT";
print...
11,477
Posted By Hypesslearner
Hi All , I am trying to insert a column at...
Hi All ,

I am trying to insert a column at the begining of the file using the code below

awk 'BEGIN {FS=OFS=","} {print "Align",$3,$10,$9,$7,$6,$4,$2,$5,$11,$10,$11}' temp1.txt>temp.txt
...
11,477
Posted By Hypesslearner
Insert empty columns inside a pipe delimited file
Hi All ,

I have pipe delimiter file with 11 columns . I need to insert 4 empty columns after column 10 . and After 11 column I need to insert a column which is having the same value for all the...
900
Posted By Hypesslearner
Assiging to a variable after cutting from the input line
Hi all,

I am reading from the file having entries like below

111.ABC.POT
6477.YHT.OIT

Now I need to read each line and cut each line seperated by dot and print into the file .

I...
908
Posted By Hypesslearner
Need simpler version of these commands
Hi all,

I am trying to grep a file with the word grand and get all the fields.. Then replace multiple spaces with single space and then get 8 th field and add all these numbers . I am able to do...
1,726
Posted By Hypesslearner
Thankyou but Now this is not working if [[ -n...
Thankyou but Now this is not working
if [[ -n $(find {LANDINGDIR} -name "${TRGFILE*}") ]];
1,726
Posted By Hypesslearner
Yes it is working but how do i use this in if...
Yes it is working but how do i use this in if condition as i need to use this in IF condition . My requirement is to check for test and delete all files like test1 or test2
1,726
Posted By Hypesslearner
Thankyou . But i need to find Test.txt ot...
Thankyou . But i need to find Test.txt ot Test.trigger or any file with text.* . How do i do this ?
1,726
Posted By Hypesslearner
Search for a file
Hi all ,

Can u please let me know how do i search for file name with any extension in a particular folder

I am using the below code
if [ -f ${LANDINGDIR}/${TRGFILE} .* ]

but this is...
1,726
Posted By Hypesslearner
Deleting files using UNIX
Hi All ,

I am using the below if condition to delete files .

if [ "$LINKTRIGGER" != "" ]
then
if [ ! -f ${LANDINGDIR}/${LINKTRIGGER}.* ]; then
log_err "Trigger File ${LINKTRIGGER} does...
1,733
Posted By Hypesslearner
Control from UNIX script is not returning to the Parent program
Hi All,

My program flow is as below

Windows batch -- > Cygwin batch --> zsh script

There are multiple Cygwin batch scripts that are called from Windows batch file . But when i am...
2,842
Posted By Hypesslearner
How do we do ? Any sample script you have ?
How do we do ? Any sample script you have ?
2,842
Posted By Hypesslearner
Execute script on the fly
Hi all,
I am calling a zsh script from batch file .

This zsh just removes the trigger file in a particular directory.File name is passed as a parameter from the batch file Problem is this...
1,019
Posted By Hypesslearner
Get first four characters from the variable name
Hi all

I have a variable name as below

runbatch=FCSTworLOADfx_CYR

Now i need to search for FCST in this variable and run a program

I am doing like this but it is failing

if...
859
Posted By Hypesslearner
If else in awk program
Hi All ,

I have set of input files with one of the fields as below
File 1 -Field 1=BUDGET_CURR_FX
File 2 -Field 1=BUDGET_MTH_AVGFX
File 3 -Field 1=BUDGET_PREV
Now i need to include one...
Showing results 1 to 25 of 27

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