Search Results

Search: Posts Made By: bashamsc
6,366
Posted By bashamsc
Passing an argument to cut command
Can we pass an argument to cut command as below

Suppose cut command is used in for or while loop and we need to pass the incremental counter

cut -f$i

Here $i is an argument.

Like wise it...
808
Posted By bashamsc
Searching for a particular mail and do something
I want a script which will searching for a particular mail and do something
1,561
Posted By bashamsc
Without replacing how i can write code with awk...
Without replacing how i can write code with awk and cut command
1,561
Posted By bashamsc
Without replacing how i can write code with awk...
Without replacing how i can write code with awk and cut command
1,561
Posted By bashamsc
If i have delimiter "|~|" instead of "|" then...
If i have delimiter "|~|" instead of "|" then what will be the code.
4,359
Posted By bashamsc
give full permission for the file i.e chmod...
give full permission for the file i.e

chmod 777 my_var.profile


and run using

sh my_var.sh
4,359
Posted By bashamsc
correct as below ./my_var.profile echo...
correct as below
./my_var.profile
echo "my_var=$my_var"
1,561
Posted By bashamsc
I have written below code and it is working ...
I have written below code and it is working

while read line
do
emp_id=`echo $line | awk -F'|' '{print $1}'`
name=`echo $line | awk -F'|' '{print $2}'`

counter=`echo $line | awk...
1,561
Posted By bashamsc
Need help to write script
I am having a File format as mentioned below

Employee id|Name|Languages

12345|Hema|02|English|Hindi
4567|Basha|03|Engligh|Hindi|Telegu

the 02 and 03 are counters. Using that we need to...
Showing results 1 to 9 of 9

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