Search Results

Search: Posts Made By: mprakasheee
1,306
Posted By mprakasheee
Resume parent shell after sourcing another script
#! /bin/ksh
#first.sh
echo "b4 set exit as return"
alias exit=return
echo "call second"
. ./second.sh
echo "after second"

#. ./third.sh
unalias exit
echo "ho lanciato il terzo"
...
2,105
Posted By mprakasheee
this command meet the requirement, could you...
this command meet the requirement, could you explain the details of this command.
2,105
Posted By mprakasheee
remove particular line from a file using sed
Hi

i need to remove all the lines staring with 'printf("\n' from a file,

example : the file tmp.txt contains


printf("\n ");
printf("\n good");
printf("\n ");
printf("\n ");...
Forum: Programming 08-09-2012
1,660
Posted By mprakasheee
memory allocation for string in C
hi

in the following code, how the memory is allocated for a1 which holds the values of a2 after cpy function call.


#include <stdio.h>
#include <string.h>

void cpy(char* d, const...
1,971
Posted By mprakasheee
thank you Don Cragun and bakunin. am able to...
thank you Don Cragun and bakunin. am able to export the lines in the file.
1,971
Posted By mprakasheee
export in unix
hi

i have some lines in a text file like,

export ORACLE_HOME=/home/dell/instantclient_11_2
export LD_LIBRARY_PATH=$ORACLE_HOME:${LD_LIBRARY_PATH}
export...
2,088
Posted By mprakasheee
this function will append the required space to...
this function will append the required space to the variable
function append(){
lr=$1
val=$3
pad=$2

#echo ${#val}
#echo $pad
#pad=${#pad}-${#val}
let pad=$pad-${#val}
echo $pad

while [...
2,088
Posted By mprakasheee
reading a csv file and creating a flat file
hi

i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized


#----------------

FILENAME="$1"
SCRIPT=$(basename $0)
...
Showing results 1 to 8 of 8

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