Posts

Showing posts from October, 2023

unix command

1. to display total number of  word  and line  of files which file name started with m in cygwin find /path/to/directory -type f -name "m*" | xargs wc -w -l 2. to remove all leading space from a file f1 sed -i 's/^ *//' f1 to display line number before each line nl -ba f1 write shell script to print number in reverse order  it should support following requirement  -script should input from command line and if you don't input any data then display error message to execute the script correctly if [ $# -eq 0 ]; then     echo "Error: Please provide numbers as command line arguments."     echo "Usage: $0 <number1> <number2> ..."     exit 1 fi echo "Numbers in reverse order:" for ((i=$#; i>0; i--)); do     echo "${!i}" done AWK  How to see column 2 or 3? awk '{print $2}' file_name How to see multiple coulumns? awk '{print $2,$3}' file_name How to see last column? awk '{print $NF}' file_name H...

ASP.net

 File >> new >> project >>web>> asp.net web application  table access id : AutoNumber (as an AutoNumber field for primary key) issu_name : Text book_id : Text book_name : Text writer_name : Text issu_date : Date/Time retuen_date : Date/Time book_type : Text phone_num : Text create insert.aspx between asp: content     <table class="nav-justified">     <tr>         <td style="width: 327px">id</td>         <td style="width: 290px">             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>         </td>         <td>             &nbsp;</td>     </tr>     <tr>         <td style="width: 327px">name</td>         <td style="width: 290px"> ...