cat file.txt | sed 's/com//g' >newfile.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OUTPUT="$(xfconf-query -c xfce4-desktop -p '/desktop-icons/style' -a)" | |
if [ "$OUTPUT" -eq "0" ]; then | |
echo "Show Desktop icons" | |
xfconf-query -c xfce4-desktop -np '/desktop-icons/style' -t 'int' -s '2' | |
elif [ "$OUTPUT" -eq "2" ]; | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This file is part of: | |
* Jalali, a Gregorian to Jalali and inverse date convertor | |
* Copyright (C) 2001 Roozbeh Pournader <roozbeh@sharif.edu> | |
* Copyright (C) 2001 Mohammad Toossi <mohammad@bamdad.org> | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
sudo apt install libfribidi0 libfribidi-dev
`./autogen.sh ./configure
lsb_release -a
uname -a
screenfetch
hostnamectl
cat /etc/os-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage ./mdia_suration.sh $(pwd) mp4 | |
len=0; | |
for f in $1/*.$2; do | |
echo -ne "$f\t"; | |
dur=`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$f"`; | |
number=`echo "$dur/1" | bc`; | |
printf '%dh:%dm:%ds\n\n' $(($number/3600)) $(($number%3600/60)) $(($number%60)) |
OlderNewer